@opencode-ai/client 0.0.0-next-15235 → 0.0.0-next-15241
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 +35 -26
- package/dist/effect/generated/client.d.ts +84 -23
- package/dist/effect/generated/client.js +14 -12
- package/dist/effect/index.d.ts +1 -1
- package/dist/effect/index.js +1 -1
- package/dist/promise/generated/client.d.ts +1051 -994
- package/dist/promise/generated/client.js +9 -0
- package/dist/promise/generated/types.d.ts +6883 -6821
- package/package.json +4 -4
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -210,54 +210,60 @@ export type Endpoint5_20Input = {
|
|
|
210
210
|
};
|
|
211
211
|
export type Endpoint5_20Output = EffectValue<ReturnType<RawClient["server.session"]["session.context"]>>["data"];
|
|
212
212
|
export type SessionContextOperation<E = never> = (input: Endpoint5_20Input) => Effect.Effect<Endpoint5_20Output, E>;
|
|
213
|
-
type Endpoint5_21Request = Parameters<RawClient["server.session"]["session.
|
|
213
|
+
type Endpoint5_21Request = Parameters<RawClient["server.session"]["session.pending.list"]>[0];
|
|
214
214
|
export type Endpoint5_21Input = {
|
|
215
215
|
readonly sessionID: Endpoint5_21Request["params"]["sessionID"];
|
|
216
216
|
};
|
|
217
|
-
export type Endpoint5_21Output = EffectValue<ReturnType<RawClient["server.session"]["session.
|
|
218
|
-
export type
|
|
219
|
-
type Endpoint5_22Request = Parameters<RawClient["server.session"]["session.instructions.entry.
|
|
217
|
+
export type Endpoint5_21Output = EffectValue<ReturnType<RawClient["server.session"]["session.pending.list"]>>["data"];
|
|
218
|
+
export type SessionPendingListOperation<E = never> = (input: Endpoint5_21Input) => Effect.Effect<Endpoint5_21Output, E>;
|
|
219
|
+
type Endpoint5_22Request = Parameters<RawClient["server.session"]["session.instructions.entry.list"]>[0];
|
|
220
220
|
export type Endpoint5_22Input = {
|
|
221
221
|
readonly sessionID: Endpoint5_22Request["params"]["sessionID"];
|
|
222
|
-
readonly key: Endpoint5_22Request["params"]["key"];
|
|
223
|
-
readonly value: Endpoint5_22Request["payload"]["value"];
|
|
224
222
|
};
|
|
225
|
-
export type Endpoint5_22Output = EffectValue<ReturnType<RawClient["server.session"]["session.instructions.entry.
|
|
226
|
-
export type
|
|
227
|
-
type Endpoint5_23Request = Parameters<RawClient["server.session"]["session.instructions.entry.
|
|
223
|
+
export type Endpoint5_22Output = EffectValue<ReturnType<RawClient["server.session"]["session.instructions.entry.list"]>>["data"];
|
|
224
|
+
export type SessionInstructionsEntryListOperation<E = never> = (input: Endpoint5_22Input) => Effect.Effect<Endpoint5_22Output, E>;
|
|
225
|
+
type Endpoint5_23Request = Parameters<RawClient["server.session"]["session.instructions.entry.put"]>[0];
|
|
228
226
|
export type Endpoint5_23Input = {
|
|
229
227
|
readonly sessionID: Endpoint5_23Request["params"]["sessionID"];
|
|
230
228
|
readonly key: Endpoint5_23Request["params"]["key"];
|
|
229
|
+
readonly value: Endpoint5_23Request["payload"]["value"];
|
|
231
230
|
};
|
|
232
|
-
export type Endpoint5_23Output = EffectValue<ReturnType<RawClient["server.session"]["session.instructions.entry.
|
|
233
|
-
export type
|
|
234
|
-
type Endpoint5_24Request = Parameters<RawClient["server.session"]["session.
|
|
231
|
+
export type Endpoint5_23Output = EffectValue<ReturnType<RawClient["server.session"]["session.instructions.entry.put"]>>;
|
|
232
|
+
export type SessionInstructionsEntryPutOperation<E = never> = (input: Endpoint5_23Input) => Effect.Effect<Endpoint5_23Output, E>;
|
|
233
|
+
type Endpoint5_24Request = Parameters<RawClient["server.session"]["session.instructions.entry.remove"]>[0];
|
|
235
234
|
export type Endpoint5_24Input = {
|
|
236
235
|
readonly sessionID: Endpoint5_24Request["params"]["sessionID"];
|
|
237
|
-
readonly
|
|
238
|
-
readonly follow?: Endpoint5_24Request["query"]["follow"];
|
|
236
|
+
readonly key: Endpoint5_24Request["params"]["key"];
|
|
239
237
|
};
|
|
240
|
-
export type Endpoint5_24Output =
|
|
241
|
-
export type
|
|
242
|
-
type Endpoint5_25Request = Parameters<RawClient["server.session"]["session.
|
|
238
|
+
export type Endpoint5_24Output = EffectValue<ReturnType<RawClient["server.session"]["session.instructions.entry.remove"]>>;
|
|
239
|
+
export type SessionInstructionsEntryRemoveOperation<E = never> = (input: Endpoint5_24Input) => Effect.Effect<Endpoint5_24Output, E>;
|
|
240
|
+
type Endpoint5_25Request = Parameters<RawClient["server.session"]["session.log"]>[0];
|
|
243
241
|
export type Endpoint5_25Input = {
|
|
244
242
|
readonly sessionID: Endpoint5_25Request["params"]["sessionID"];
|
|
243
|
+
readonly after?: Endpoint5_25Request["query"]["after"];
|
|
244
|
+
readonly follow?: Endpoint5_25Request["query"]["follow"];
|
|
245
245
|
};
|
|
246
|
-
export type Endpoint5_25Output = EffectValue<ReturnType<RawClient["server.session"]["session.
|
|
247
|
-
export type
|
|
248
|
-
type Endpoint5_26Request = Parameters<RawClient["server.session"]["session.
|
|
246
|
+
export type Endpoint5_25Output = StreamValue<EffectValue<ReturnType<RawClient["server.session"]["session.log"]>>>;
|
|
247
|
+
export type SessionLogOperation<E = never> = (input: Endpoint5_25Input) => Stream.Stream<Endpoint5_25Output, E>;
|
|
248
|
+
type Endpoint5_26Request = Parameters<RawClient["server.session"]["session.interrupt"]>[0];
|
|
249
249
|
export type Endpoint5_26Input = {
|
|
250
250
|
readonly sessionID: Endpoint5_26Request["params"]["sessionID"];
|
|
251
251
|
};
|
|
252
|
-
export type Endpoint5_26Output = EffectValue<ReturnType<RawClient["server.session"]["session.
|
|
253
|
-
export type
|
|
254
|
-
type Endpoint5_27Request = Parameters<RawClient["server.session"]["session.
|
|
252
|
+
export type Endpoint5_26Output = EffectValue<ReturnType<RawClient["server.session"]["session.interrupt"]>>;
|
|
253
|
+
export type SessionInterruptOperation<E = never> = (input: Endpoint5_26Input) => Effect.Effect<Endpoint5_26Output, E>;
|
|
254
|
+
type Endpoint5_27Request = Parameters<RawClient["server.session"]["session.background"]>[0];
|
|
255
255
|
export type Endpoint5_27Input = {
|
|
256
256
|
readonly sessionID: Endpoint5_27Request["params"]["sessionID"];
|
|
257
|
-
readonly messageID: Endpoint5_27Request["params"]["messageID"];
|
|
258
257
|
};
|
|
259
|
-
export type Endpoint5_27Output = EffectValue<ReturnType<RawClient["server.session"]["session.
|
|
260
|
-
export type
|
|
258
|
+
export type Endpoint5_27Output = EffectValue<ReturnType<RawClient["server.session"]["session.background"]>>;
|
|
259
|
+
export type SessionBackgroundOperation<E = never> = (input: Endpoint5_27Input) => Effect.Effect<Endpoint5_27Output, E>;
|
|
260
|
+
type Endpoint5_28Request = Parameters<RawClient["server.session"]["session.message"]>[0];
|
|
261
|
+
export type Endpoint5_28Input = {
|
|
262
|
+
readonly sessionID: Endpoint5_28Request["params"]["sessionID"];
|
|
263
|
+
readonly messageID: Endpoint5_28Request["params"]["messageID"];
|
|
264
|
+
};
|
|
265
|
+
export type Endpoint5_28Output = EffectValue<ReturnType<RawClient["server.session"]["session.message"]>>["data"];
|
|
266
|
+
export type SessionMessageOperation<E = never> = (input: Endpoint5_28Input) => Effect.Effect<Endpoint5_28Output, E>;
|
|
261
267
|
export interface SessionApi<E = never> {
|
|
262
268
|
readonly list: SessionListOperation<E>;
|
|
263
269
|
readonly create: SessionCreateOperation<E>;
|
|
@@ -282,6 +288,9 @@ export interface SessionApi<E = never> {
|
|
|
282
288
|
readonly commit: SessionRevertCommitOperation<E>;
|
|
283
289
|
};
|
|
284
290
|
readonly context: SessionContextOperation<E>;
|
|
291
|
+
readonly pending: {
|
|
292
|
+
readonly list: SessionPendingListOperation<E>;
|
|
293
|
+
};
|
|
285
294
|
readonly instructions: {
|
|
286
295
|
readonly entry: {
|
|
287
296
|
readonly list: SessionInstructionsEntryListOperation<E>;
|
|
@@ -144,39 +144,43 @@ type Endpoint5_20Request = Parameters<RawClient["server.session"]["session.conte
|
|
|
144
144
|
type Endpoint5_20Input = {
|
|
145
145
|
readonly sessionID: Endpoint5_20Request["params"]["sessionID"];
|
|
146
146
|
};
|
|
147
|
-
type Endpoint5_21Request = Parameters<RawClient["server.session"]["session.
|
|
147
|
+
type Endpoint5_21Request = Parameters<RawClient["server.session"]["session.pending.list"]>[0];
|
|
148
148
|
type Endpoint5_21Input = {
|
|
149
149
|
readonly sessionID: Endpoint5_21Request["params"]["sessionID"];
|
|
150
150
|
};
|
|
151
|
-
type Endpoint5_22Request = Parameters<RawClient["server.session"]["session.instructions.entry.
|
|
151
|
+
type Endpoint5_22Request = Parameters<RawClient["server.session"]["session.instructions.entry.list"]>[0];
|
|
152
152
|
type Endpoint5_22Input = {
|
|
153
153
|
readonly sessionID: Endpoint5_22Request["params"]["sessionID"];
|
|
154
|
-
readonly key: Endpoint5_22Request["params"]["key"];
|
|
155
|
-
readonly value: Endpoint5_22Request["payload"]["value"];
|
|
156
154
|
};
|
|
157
|
-
type Endpoint5_23Request = Parameters<RawClient["server.session"]["session.instructions.entry.
|
|
155
|
+
type Endpoint5_23Request = Parameters<RawClient["server.session"]["session.instructions.entry.put"]>[0];
|
|
158
156
|
type Endpoint5_23Input = {
|
|
159
157
|
readonly sessionID: Endpoint5_23Request["params"]["sessionID"];
|
|
160
158
|
readonly key: Endpoint5_23Request["params"]["key"];
|
|
159
|
+
readonly value: Endpoint5_23Request["payload"]["value"];
|
|
161
160
|
};
|
|
162
|
-
type Endpoint5_24Request = Parameters<RawClient["server.session"]["session.
|
|
161
|
+
type Endpoint5_24Request = Parameters<RawClient["server.session"]["session.instructions.entry.remove"]>[0];
|
|
163
162
|
type Endpoint5_24Input = {
|
|
164
163
|
readonly sessionID: Endpoint5_24Request["params"]["sessionID"];
|
|
165
|
-
readonly
|
|
166
|
-
readonly follow?: Endpoint5_24Request["query"]["follow"];
|
|
164
|
+
readonly key: Endpoint5_24Request["params"]["key"];
|
|
167
165
|
};
|
|
168
|
-
type Endpoint5_25Request = Parameters<RawClient["server.session"]["session.
|
|
166
|
+
type Endpoint5_25Request = Parameters<RawClient["server.session"]["session.log"]>[0];
|
|
169
167
|
type Endpoint5_25Input = {
|
|
170
168
|
readonly sessionID: Endpoint5_25Request["params"]["sessionID"];
|
|
169
|
+
readonly after?: Endpoint5_25Request["query"]["after"];
|
|
170
|
+
readonly follow?: Endpoint5_25Request["query"]["follow"];
|
|
171
171
|
};
|
|
172
|
-
type Endpoint5_26Request = Parameters<RawClient["server.session"]["session.
|
|
172
|
+
type Endpoint5_26Request = Parameters<RawClient["server.session"]["session.interrupt"]>[0];
|
|
173
173
|
type Endpoint5_26Input = {
|
|
174
174
|
readonly sessionID: Endpoint5_26Request["params"]["sessionID"];
|
|
175
175
|
};
|
|
176
|
-
type Endpoint5_27Request = Parameters<RawClient["server.session"]["session.
|
|
176
|
+
type Endpoint5_27Request = Parameters<RawClient["server.session"]["session.background"]>[0];
|
|
177
177
|
type Endpoint5_27Input = {
|
|
178
178
|
readonly sessionID: Endpoint5_27Request["params"]["sessionID"];
|
|
179
|
-
|
|
179
|
+
};
|
|
180
|
+
type Endpoint5_28Request = Parameters<RawClient["server.session"]["session.message"]>[0];
|
|
181
|
+
type Endpoint5_28Input = {
|
|
182
|
+
readonly sessionID: Endpoint5_28Request["params"]["sessionID"];
|
|
183
|
+
readonly messageID: Endpoint5_28Request["params"]["messageID"];
|
|
180
184
|
};
|
|
181
185
|
type Endpoint6_0Request = Parameters<RawClient["server.message"]["session.messages"]>[0];
|
|
182
186
|
type Endpoint6_0Input = {
|
|
@@ -805,7 +809,6 @@ export declare const make: (options?: {
|
|
|
805
809
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
806
810
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
807
811
|
readonly timeCreated: import("effect/DateTime").Utc;
|
|
808
|
-
readonly promotedSeq?: number | undefined;
|
|
809
812
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
810
813
|
command: (input: Endpoint5_11Input) => Effect.Effect<{
|
|
811
814
|
readonly type: "user";
|
|
@@ -845,7 +848,6 @@ export declare const make: (options?: {
|
|
|
845
848
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
846
849
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
847
850
|
readonly timeCreated: import("effect/DateTime").Utc;
|
|
848
|
-
readonly promotedSeq?: number | undefined;
|
|
849
851
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").CommandNotFoundError | import("@opencode-ai/protocol/errors").CommandEvaluationError | HttpClientError.HttpClientError | ClientError, never>;
|
|
850
852
|
skill: (input: Endpoint5_12Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").SkillNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
851
853
|
synthetic: (input: Endpoint5_13Input) => Effect.Effect<{
|
|
@@ -862,7 +864,6 @@ export declare const make: (options?: {
|
|
|
862
864
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
863
865
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
864
866
|
readonly timeCreated: import("effect/DateTime").Utc;
|
|
865
|
-
readonly promotedSeq?: number | undefined;
|
|
866
867
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
867
868
|
shell: (input: Endpoint5_14Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
868
869
|
compact: (input: Endpoint5_15Input) => Effect.Effect<{
|
|
@@ -871,7 +872,6 @@ export declare const make: (options?: {
|
|
|
871
872
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
872
873
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
873
874
|
readonly timeCreated: import("effect/DateTime").Utc;
|
|
874
|
-
readonly handledSeq?: number | undefined;
|
|
875
875
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
876
876
|
wait: (input: Endpoint5_16Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
877
877
|
revert: {
|
|
@@ -1184,17 +1184,78 @@ export declare const make: (options?: {
|
|
|
1184
1184
|
readonly [x: string]: unknown;
|
|
1185
1185
|
} | undefined;
|
|
1186
1186
|
})[], Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").UnknownError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
1187
|
+
pending: {
|
|
1188
|
+
list: (input: Endpoint5_21Input) => Effect.Effect<readonly ({
|
|
1189
|
+
readonly type: "user";
|
|
1190
|
+
readonly data: {
|
|
1191
|
+
readonly text: string;
|
|
1192
|
+
readonly metadata?: {
|
|
1193
|
+
readonly [x: string]: unknown;
|
|
1194
|
+
} | undefined;
|
|
1195
|
+
readonly files?: readonly {
|
|
1196
|
+
readonly data: string;
|
|
1197
|
+
readonly mime: string;
|
|
1198
|
+
readonly source: {
|
|
1199
|
+
readonly type: "inline";
|
|
1200
|
+
} | {
|
|
1201
|
+
readonly type: "uri";
|
|
1202
|
+
readonly uri: string;
|
|
1203
|
+
};
|
|
1204
|
+
readonly name?: string | undefined;
|
|
1205
|
+
readonly description?: string | undefined;
|
|
1206
|
+
readonly mention?: {
|
|
1207
|
+
readonly start: number;
|
|
1208
|
+
readonly end: number;
|
|
1209
|
+
readonly text: string;
|
|
1210
|
+
} | undefined;
|
|
1211
|
+
}[] | undefined;
|
|
1212
|
+
readonly agents?: readonly {
|
|
1213
|
+
readonly name: string;
|
|
1214
|
+
readonly mention?: {
|
|
1215
|
+
readonly start: number;
|
|
1216
|
+
readonly end: number;
|
|
1217
|
+
readonly text: string;
|
|
1218
|
+
} | undefined;
|
|
1219
|
+
}[] | undefined;
|
|
1220
|
+
};
|
|
1221
|
+
readonly delivery: "steer" | "queue";
|
|
1222
|
+
readonly admittedSeq: number;
|
|
1223
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1224
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1225
|
+
readonly timeCreated: import("effect/DateTime").Utc;
|
|
1226
|
+
} | {
|
|
1227
|
+
readonly type: "synthetic";
|
|
1228
|
+
readonly data: {
|
|
1229
|
+
readonly text: string;
|
|
1230
|
+
readonly description?: string | undefined;
|
|
1231
|
+
readonly metadata?: {
|
|
1232
|
+
readonly [x: string]: unknown;
|
|
1233
|
+
} | undefined;
|
|
1234
|
+
};
|
|
1235
|
+
readonly delivery: "steer" | "queue";
|
|
1236
|
+
readonly admittedSeq: number;
|
|
1237
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1238
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1239
|
+
readonly timeCreated: import("effect/DateTime").Utc;
|
|
1240
|
+
} | {
|
|
1241
|
+
readonly type: "compaction";
|
|
1242
|
+
readonly admittedSeq: number;
|
|
1243
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1244
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1245
|
+
readonly timeCreated: import("effect/DateTime").Utc;
|
|
1246
|
+
})[], Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
1247
|
+
};
|
|
1187
1248
|
instructions: {
|
|
1188
1249
|
entry: {
|
|
1189
|
-
list: (input:
|
|
1250
|
+
list: (input: Endpoint5_22Input) => Effect.Effect<readonly {
|
|
1190
1251
|
readonly key: string;
|
|
1191
1252
|
readonly value: Schema.Json;
|
|
1192
1253
|
}[], Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
1193
|
-
put: (input:
|
|
1194
|
-
remove: (input:
|
|
1254
|
+
put: (input: Endpoint5_23Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
1255
|
+
remove: (input: Endpoint5_24Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
1195
1256
|
};
|
|
1196
1257
|
};
|
|
1197
|
-
log: (input:
|
|
1258
|
+
log: (input: Endpoint5_25Input) => Stream.Stream<{
|
|
1198
1259
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1199
1260
|
readonly created: import("effect/DateTime").Utc;
|
|
1200
1261
|
readonly type: "session.agent.selected";
|
|
@@ -2181,9 +2242,9 @@ export declare const make: (options?: {
|
|
|
2181
2242
|
readonly aggregateID: string;
|
|
2182
2243
|
readonly seq?: (number & import("effect/Brand").Brand<"Event.Seq">) | undefined;
|
|
2183
2244
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | Sse.Retry | ClientError, never>;
|
|
2184
|
-
interrupt: (input:
|
|
2185
|
-
background: (input:
|
|
2186
|
-
message: (input:
|
|
2245
|
+
interrupt: (input: Endpoint5_26Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
2246
|
+
background: (input: Endpoint5_27Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
2247
|
+
message: (input: Endpoint5_28Input) => Effect.Effect<{
|
|
2187
2248
|
readonly type: "agent-switched";
|
|
2188
2249
|
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
2189
2250
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -99,19 +99,20 @@ const Endpoint5_17 = (raw) => (input) => raw["session.revert.stage"]({
|
|
|
99
99
|
const Endpoint5_18 = (raw) => (input) => raw["session.revert.clear"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
100
100
|
const Endpoint5_19 = (raw) => (input) => raw["session.revert.commit"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
101
101
|
const Endpoint5_20 = (raw) => (input) => raw["session.context"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
102
|
-
const Endpoint5_21 = (raw) => (input) => raw["session.
|
|
103
|
-
const Endpoint5_22 = (raw) => (input) => raw["session.instructions.entry.
|
|
102
|
+
const Endpoint5_21 = (raw) => (input) => raw["session.pending.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
103
|
+
const Endpoint5_22 = (raw) => (input) => raw["session.instructions.entry.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
104
|
+
const Endpoint5_23 = (raw) => (input) => raw["session.instructions.entry.put"]({
|
|
104
105
|
params: { sessionID: input["sessionID"], key: input["key"] },
|
|
105
106
|
payload: { value: input["value"] },
|
|
106
107
|
}).pipe(Effect.mapError(mapClientError));
|
|
107
|
-
const
|
|
108
|
-
const
|
|
108
|
+
const Endpoint5_24 = (raw) => (input) => raw["session.instructions.entry.remove"]({ params: { sessionID: input["sessionID"], key: input["key"] } }).pipe(Effect.mapError(mapClientError));
|
|
109
|
+
const Endpoint5_25 = (raw) => (input) => Stream.unwrap(raw["session.log"]({
|
|
109
110
|
params: { sessionID: input["sessionID"] },
|
|
110
111
|
query: { after: input["after"], follow: input["follow"] },
|
|
111
112
|
}).pipe(Effect.mapError(mapClientError), Effect.map((stream) => stream.pipe(Stream.mapError(mapClientError)))));
|
|
112
|
-
const
|
|
113
|
-
const
|
|
114
|
-
const
|
|
113
|
+
const Endpoint5_26 = (raw) => (input) => raw["session.interrupt"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
114
|
+
const Endpoint5_27 = (raw) => (input) => raw["session.background"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
115
|
+
const Endpoint5_28 = (raw) => (input) => raw["session.message"]({ params: { sessionID: input["sessionID"], messageID: input["messageID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
115
116
|
const adaptGroup5 = (raw) => ({
|
|
116
117
|
list: Endpoint5_0(raw),
|
|
117
118
|
create: Endpoint5_1(raw),
|
|
@@ -132,11 +133,12 @@ const adaptGroup5 = (raw) => ({
|
|
|
132
133
|
wait: Endpoint5_16(raw),
|
|
133
134
|
revert: { stage: Endpoint5_17(raw), clear: Endpoint5_18(raw), commit: Endpoint5_19(raw) },
|
|
134
135
|
context: Endpoint5_20(raw),
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
pending: { list: Endpoint5_21(raw) },
|
|
137
|
+
instructions: { entry: { list: Endpoint5_22(raw), put: Endpoint5_23(raw), remove: Endpoint5_24(raw) } },
|
|
138
|
+
log: Endpoint5_25(raw),
|
|
139
|
+
interrupt: Endpoint5_26(raw),
|
|
140
|
+
background: Endpoint5_27(raw),
|
|
141
|
+
message: Endpoint5_28(raw),
|
|
140
142
|
});
|
|
141
143
|
const Endpoint6_0 = (raw) => (input) => raw["session.messages"]({
|
|
142
144
|
params: { sessionID: input["sessionID"] },
|
package/dist/effect/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export { Question } from "@opencode-ai/schema/question";
|
|
|
22
22
|
export { Reference } from "@opencode-ai/schema/reference";
|
|
23
23
|
export { AbsolutePath, RelativePath } from "@opencode-ai/schema/schema";
|
|
24
24
|
export { Session } from "@opencode-ai/schema/session";
|
|
25
|
-
export {
|
|
25
|
+
export { SessionPending } from "@opencode-ai/schema/session-pending";
|
|
26
26
|
export { SessionMessage } from "@opencode-ai/schema/session-message";
|
|
27
27
|
export { Skill } from "@opencode-ai/schema/skill";
|
|
28
28
|
export { Prompt } from "@opencode-ai/schema/prompt";
|
package/dist/effect/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export { Question } from "@opencode-ai/schema/question";
|
|
|
20
20
|
export { Reference } from "@opencode-ai/schema/reference";
|
|
21
21
|
export { AbsolutePath, RelativePath } from "@opencode-ai/schema/schema";
|
|
22
22
|
export { Session } from "@opencode-ai/schema/session";
|
|
23
|
-
export {
|
|
23
|
+
export { SessionPending } from "@opencode-ai/schema/session-pending";
|
|
24
24
|
export { SessionMessage } from "@opencode-ai/schema/session-message";
|
|
25
25
|
export { Skill } from "@opencode-ai/schema/skill";
|
|
26
26
|
export { Prompt } from "@opencode-ai/schema/prompt";
|