@opencode-ai/client 0.0.0-next-16974 → 0.0.0-next-16977
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 +93 -21
- package/dist/effect/generated/client.d.ts +74 -11
- package/dist/effect/generated/client.js +18 -15
- package/dist/promise/generated/client.d.ts +4 -1
- package/dist/promise/generated/client.js +21 -0
- package/dist/promise/generated/types.d.ts +89 -2
- package/package.json +4 -4
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -301,36 +301,54 @@ export type Endpoint5_23Output = ReadonlyArray<SessionPending.Info>;
|
|
|
301
301
|
export type SessionPendingListOperation<E = never> = (input: Endpoint5_23Input) => Effect.Effect<Endpoint5_23Output, E>;
|
|
302
302
|
export type Endpoint5_24Input = {
|
|
303
303
|
readonly sessionID: Session.ID;
|
|
304
|
+
readonly inputID: SessionMessage.ID;
|
|
304
305
|
};
|
|
305
|
-
export type Endpoint5_24Output =
|
|
306
|
-
export type
|
|
306
|
+
export type Endpoint5_24Output = void;
|
|
307
|
+
export type SessionPendingCancelOperation<E = never> = (input: Endpoint5_24Input) => Effect.Effect<Endpoint5_24Output, E>;
|
|
307
308
|
export type Endpoint5_25Input = {
|
|
308
309
|
readonly sessionID: Session.ID;
|
|
309
|
-
readonly
|
|
310
|
-
readonly value: Schema.Json;
|
|
310
|
+
readonly inputID: SessionMessage.ID;
|
|
311
311
|
};
|
|
312
312
|
export type Endpoint5_25Output = void;
|
|
313
|
-
export type
|
|
313
|
+
export type SessionPendingSteerOperation<E = never> = (input: Endpoint5_25Input) => Effect.Effect<Endpoint5_25Output, E>;
|
|
314
314
|
export type Endpoint5_26Input = {
|
|
315
315
|
readonly sessionID: Session.ID;
|
|
316
|
-
readonly
|
|
316
|
+
readonly inputID: SessionMessage.ID;
|
|
317
317
|
};
|
|
318
318
|
export type Endpoint5_26Output = void;
|
|
319
|
-
export type
|
|
319
|
+
export type SessionPendingQueueOperation<E = never> = (input: Endpoint5_26Input) => Effect.Effect<Endpoint5_26Output, E>;
|
|
320
320
|
export type Endpoint5_27Input = {
|
|
321
321
|
readonly sessionID: Session.ID;
|
|
322
|
+
};
|
|
323
|
+
export type Endpoint5_27Output = ReadonlyArray<InstructionEntry.Info>;
|
|
324
|
+
export type SessionInstructionsEntryListOperation<E = never> = (input: Endpoint5_27Input) => Effect.Effect<Endpoint5_27Output, E>;
|
|
325
|
+
export type Endpoint5_28Input = {
|
|
326
|
+
readonly sessionID: Session.ID;
|
|
327
|
+
readonly key: InstructionEntry.Key;
|
|
328
|
+
readonly value: Schema.Json;
|
|
329
|
+
};
|
|
330
|
+
export type Endpoint5_28Output = void;
|
|
331
|
+
export type SessionInstructionsEntryPutOperation<E = never> = (input: Endpoint5_28Input) => Effect.Effect<Endpoint5_28Output, E>;
|
|
332
|
+
export type Endpoint5_29Input = {
|
|
333
|
+
readonly sessionID: Session.ID;
|
|
334
|
+
readonly key: InstructionEntry.Key;
|
|
335
|
+
};
|
|
336
|
+
export type Endpoint5_29Output = void;
|
|
337
|
+
export type SessionInstructionsEntryRemoveOperation<E = never> = (input: Endpoint5_29Input) => Effect.Effect<Endpoint5_29Output, E>;
|
|
338
|
+
export type Endpoint5_30Input = {
|
|
339
|
+
readonly sessionID: Session.ID;
|
|
322
340
|
readonly prompt: string;
|
|
323
341
|
};
|
|
324
|
-
export type
|
|
342
|
+
export type Endpoint5_30Output = {
|
|
325
343
|
readonly text: string;
|
|
326
344
|
};
|
|
327
|
-
export type SessionGenerateOperation<E = never> = (input:
|
|
328
|
-
export type
|
|
345
|
+
export type SessionGenerateOperation<E = never> = (input: Endpoint5_30Input) => Effect.Effect<Endpoint5_30Output, E>;
|
|
346
|
+
export type Endpoint5_31Input = {
|
|
329
347
|
readonly sessionID: Session.ID;
|
|
330
348
|
readonly after?: Event.Seq | undefined;
|
|
331
349
|
readonly follow?: boolean | undefined;
|
|
332
350
|
};
|
|
333
|
-
export type
|
|
351
|
+
export type Endpoint5_31Output = ({
|
|
334
352
|
readonly id: Event.ID;
|
|
335
353
|
readonly created: DateTime.Utc;
|
|
336
354
|
readonly metadata?: {
|
|
@@ -497,6 +515,57 @@ export type Endpoint5_28Output = ({
|
|
|
497
515
|
readonly inputID: SessionMessage.ID;
|
|
498
516
|
readonly input: SessionPending.Message;
|
|
499
517
|
};
|
|
518
|
+
} | {
|
|
519
|
+
readonly id: Event.ID;
|
|
520
|
+
readonly created: DateTime.Utc;
|
|
521
|
+
readonly metadata?: {
|
|
522
|
+
readonly [x: string]: unknown;
|
|
523
|
+
} | undefined;
|
|
524
|
+
readonly type: "session.input.cancelled";
|
|
525
|
+
readonly durable: {
|
|
526
|
+
readonly aggregateID: string;
|
|
527
|
+
readonly seq: Event.Seq;
|
|
528
|
+
readonly version: Event.Version;
|
|
529
|
+
};
|
|
530
|
+
readonly location?: Location.Ref | undefined;
|
|
531
|
+
readonly data: {
|
|
532
|
+
readonly sessionID: Session.ID;
|
|
533
|
+
readonly inputID: SessionMessage.ID;
|
|
534
|
+
};
|
|
535
|
+
} | {
|
|
536
|
+
readonly id: Event.ID;
|
|
537
|
+
readonly created: DateTime.Utc;
|
|
538
|
+
readonly metadata?: {
|
|
539
|
+
readonly [x: string]: unknown;
|
|
540
|
+
} | undefined;
|
|
541
|
+
readonly type: "session.input.steered";
|
|
542
|
+
readonly durable: {
|
|
543
|
+
readonly aggregateID: string;
|
|
544
|
+
readonly seq: Event.Seq;
|
|
545
|
+
readonly version: Event.Version;
|
|
546
|
+
};
|
|
547
|
+
readonly location?: Location.Ref | undefined;
|
|
548
|
+
readonly data: {
|
|
549
|
+
readonly sessionID: Session.ID;
|
|
550
|
+
readonly inputID: SessionMessage.ID;
|
|
551
|
+
};
|
|
552
|
+
} | {
|
|
553
|
+
readonly id: Event.ID;
|
|
554
|
+
readonly created: DateTime.Utc;
|
|
555
|
+
readonly metadata?: {
|
|
556
|
+
readonly [x: string]: unknown;
|
|
557
|
+
} | undefined;
|
|
558
|
+
readonly type: "session.input.queued";
|
|
559
|
+
readonly durable: {
|
|
560
|
+
readonly aggregateID: string;
|
|
561
|
+
readonly seq: Event.Seq;
|
|
562
|
+
readonly version: Event.Version;
|
|
563
|
+
};
|
|
564
|
+
readonly location?: Location.Ref | undefined;
|
|
565
|
+
readonly data: {
|
|
566
|
+
readonly sessionID: Session.ID;
|
|
567
|
+
readonly inputID: SessionMessage.ID;
|
|
568
|
+
};
|
|
500
569
|
} | {
|
|
501
570
|
readonly id: Event.ID;
|
|
502
571
|
readonly created: DateTime.Utc;
|
|
@@ -1160,23 +1229,23 @@ export type Endpoint5_28Output = ({
|
|
|
1160
1229
|
};
|
|
1161
1230
|
};
|
|
1162
1231
|
}) | EventLog.Synced;
|
|
1163
|
-
export type SessionLogOperation<E = never> = (input:
|
|
1164
|
-
export type
|
|
1232
|
+
export type SessionLogOperation<E = never> = (input: Endpoint5_31Input) => Stream.Stream<Endpoint5_31Output, E>;
|
|
1233
|
+
export type Endpoint5_32Input = {
|
|
1165
1234
|
readonly sessionID: Session.ID;
|
|
1166
1235
|
};
|
|
1167
|
-
export type
|
|
1168
|
-
export type SessionInterruptOperation<E = never> = (input:
|
|
1169
|
-
export type
|
|
1236
|
+
export type Endpoint5_32Output = void;
|
|
1237
|
+
export type SessionInterruptOperation<E = never> = (input: Endpoint5_32Input) => Effect.Effect<Endpoint5_32Output, E>;
|
|
1238
|
+
export type Endpoint5_33Input = {
|
|
1170
1239
|
readonly sessionID: Session.ID;
|
|
1171
1240
|
};
|
|
1172
|
-
export type
|
|
1173
|
-
export type SessionBackgroundOperation<E = never> = (input:
|
|
1174
|
-
export type
|
|
1241
|
+
export type Endpoint5_33Output = void;
|
|
1242
|
+
export type SessionBackgroundOperation<E = never> = (input: Endpoint5_33Input) => Effect.Effect<Endpoint5_33Output, E>;
|
|
1243
|
+
export type Endpoint5_34Input = {
|
|
1175
1244
|
readonly sessionID: Session.ID;
|
|
1176
1245
|
readonly messageID: SessionMessage.ID;
|
|
1177
1246
|
};
|
|
1178
|
-
export type
|
|
1179
|
-
export type SessionMessageOperation<E = never> = (input:
|
|
1247
|
+
export type Endpoint5_34Output = SessionMessage.Info;
|
|
1248
|
+
export type SessionMessageOperation<E = never> = (input: Endpoint5_34Input) => Effect.Effect<Endpoint5_34Output, E>;
|
|
1180
1249
|
export interface SessionApi<E = never> {
|
|
1181
1250
|
readonly list: SessionListOperation<E>;
|
|
1182
1251
|
readonly create: SessionCreateOperation<E>;
|
|
@@ -1205,6 +1274,9 @@ export interface SessionApi<E = never> {
|
|
|
1205
1274
|
readonly context: SessionContextOperation<E>;
|
|
1206
1275
|
readonly pending: {
|
|
1207
1276
|
readonly list: SessionPendingListOperation<E>;
|
|
1277
|
+
readonly cancel: SessionPendingCancelOperation<E>;
|
|
1278
|
+
readonly steer: SessionPendingSteerOperation<E>;
|
|
1279
|
+
readonly queue: SessionPendingQueueOperation<E>;
|
|
1208
1280
|
};
|
|
1209
1281
|
readonly instructions: {
|
|
1210
1282
|
readonly entry: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, Stream, Schema } from "effect";
|
|
2
2
|
import { Sse } from "effect/unstable/encoding";
|
|
3
3
|
import { HttpClientError } from "effect/unstable/http";
|
|
4
|
-
import type { Endpoint0_0Output, Endpoint0_1Input, Endpoint0_1Output, Endpoint1_0Output, Endpoint2_0Input, Endpoint3_0Input, Endpoint3_0Output, Endpoint3_1Input, Endpoint3_1Output, Endpoint4_0Input, Endpoint4_0Output, Endpoint5_0Input, Endpoint5_0Output, Endpoint5_1Input, Endpoint5_2Input, Endpoint5_3Input, Endpoint5_3Output, Endpoint5_4Output, Endpoint5_5Input, Endpoint5_6Input, Endpoint5_7Input, Endpoint5_8Input, Endpoint5_9Input, Endpoint5_10Input, Endpoint5_11Input, Endpoint5_12Input, Endpoint5_13Input, Endpoint5_14Input, Endpoint5_15Input, Endpoint5_16Input, Endpoint5_17Input, Endpoint5_18Input, Endpoint5_19Input, Endpoint5_20Input, Endpoint5_21Input, Endpoint5_22Input, Endpoint5_22Output, Endpoint5_23Input, Endpoint5_23Output, Endpoint5_24Input,
|
|
4
|
+
import type { Endpoint0_0Output, Endpoint0_1Input, Endpoint0_1Output, Endpoint1_0Output, Endpoint2_0Input, Endpoint3_0Input, Endpoint3_0Output, Endpoint3_1Input, Endpoint3_1Output, Endpoint4_0Input, Endpoint4_0Output, Endpoint5_0Input, Endpoint5_0Output, Endpoint5_1Input, Endpoint5_2Input, Endpoint5_3Input, Endpoint5_3Output, Endpoint5_4Output, Endpoint5_5Input, Endpoint5_6Input, Endpoint5_7Input, Endpoint5_8Input, Endpoint5_9Input, Endpoint5_10Input, Endpoint5_11Input, Endpoint5_12Input, Endpoint5_13Input, Endpoint5_14Input, Endpoint5_15Input, Endpoint5_16Input, Endpoint5_17Input, Endpoint5_18Input, Endpoint5_19Input, Endpoint5_20Input, Endpoint5_21Input, Endpoint5_22Input, Endpoint5_22Output, Endpoint5_23Input, Endpoint5_23Output, Endpoint5_24Input, Endpoint5_25Input, Endpoint5_26Input, Endpoint5_27Input, Endpoint5_27Output, Endpoint5_28Input, Endpoint5_29Input, Endpoint5_30Input, Endpoint5_30Output, Endpoint5_31Input, Endpoint5_31Output, Endpoint5_32Input, Endpoint5_33Input, Endpoint5_34Input, Endpoint6_0Input, Endpoint6_0Output, Endpoint7_0Input, Endpoint7_0Output, Endpoint7_1Input, Endpoint7_1Output, Endpoint8_0Input, Endpoint8_0Output, Endpoint9_0Input, Endpoint9_0Output, Endpoint9_1Input, Endpoint9_1Output, Endpoint10_0Input, Endpoint10_0Output, Endpoint10_1Input, Endpoint10_1Output, Endpoint10_2Input, Endpoint10_3Input, Endpoint10_4Input, Endpoint10_4Output, Endpoint10_5Input, Endpoint10_5Output, Endpoint10_6Input, Endpoint10_7Input, Endpoint10_8Input, Endpoint10_8Output, Endpoint10_9Input, Endpoint10_9Output, Endpoint10_10Input, Endpoint11_0Input, Endpoint11_0Output, Endpoint11_1Input, Endpoint11_2Input, Endpoint11_3Input, Endpoint11_4Input, Endpoint11_5Input, Endpoint11_5Output, Endpoint12_0Input, Endpoint12_1Input, Endpoint13_0Output, Endpoint13_1Input, Endpoint13_2Input, Endpoint14_0Input, Endpoint14_0Output, Endpoint14_1Input, Endpoint14_1Output, Endpoint14_2Input, Endpoint14_3Input, Endpoint14_4Input, Endpoint14_5Input, Endpoint14_6Input, Endpoint15_0Input, Endpoint15_0Output, Endpoint15_1Input, Endpoint15_1Output, Endpoint15_2Input, Endpoint15_3Input, Endpoint15_3Output, Endpoint15_4Input, Endpoint15_4Output, Endpoint15_5Input, Endpoint15_6Input, Endpoint16_0Input, Endpoint16_0Output, Endpoint16_1Input, Endpoint16_1Output, Endpoint17_0Input, Endpoint17_0Output, Endpoint18_0Input, Endpoint18_0Output, Endpoint20_0Input, Endpoint20_0Output, Endpoint20_1Input, Endpoint20_1Output, Endpoint20_2Input, Endpoint20_2Output, Endpoint20_3Input, Endpoint20_3Output, Endpoint20_4Input, Endpoint21_0Input, Endpoint21_0Output, Endpoint21_1Input, Endpoint21_1Output, Endpoint21_2Input, Endpoint21_2Output, Endpoint21_3Input, Endpoint21_3Output, Endpoint21_4Input, Endpoint21_4Output, Endpoint21_5Input, Endpoint22_0Input, Endpoint22_0Output, Endpoint22_1Input, Endpoint22_1Output, Endpoint22_2Input, Endpoint22_3Input, Endpoint23_0Input, Endpoint23_0Output, Endpoint24_0Input, Endpoint24_1Input, Endpoint24_2Input, Endpoint25_0Input, Endpoint25_0Output, Endpoint25_1Input, Endpoint25_1Output, Endpoint25_2Input, Endpoint25_2Output, Endpoint26_0Output, Endpoint26_1Input, Endpoint27_0Output, Endpoint28_0Input, Endpoint28_0Output, Endpoint28_1Input, Endpoint28_1Output, Endpoint29_0Input, Endpoint29_0Output } from "../api/api.js";
|
|
5
5
|
import { ClientError } from "./client-error";
|
|
6
6
|
export declare const make: (options?: {
|
|
7
7
|
readonly baseUrl?: URL | string;
|
|
@@ -51,19 +51,22 @@ export declare const make: (options?: {
|
|
|
51
51
|
context: (input: Endpoint5_22Input) => Effect.Effect<Endpoint5_22Output, 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 | ClientError | HttpClientError.HttpClientError, never>;
|
|
52
52
|
pending: {
|
|
53
53
|
list: (input: Endpoint5_23Input) => Effect.Effect<Endpoint5_23Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
54
|
+
cancel: (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").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
55
|
+
steer: (input: Endpoint5_25Input) => Effect.Effect<void, 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 | ClientError | HttpClientError.HttpClientError, never>;
|
|
56
|
+
queue: (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").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
54
57
|
};
|
|
55
58
|
instructions: {
|
|
56
59
|
entry: {
|
|
57
|
-
list: (input:
|
|
58
|
-
put: (input:
|
|
59
|
-
remove: (input:
|
|
60
|
+
list: (input: Endpoint5_27Input) => Effect.Effect<Endpoint5_27Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
61
|
+
put: (input: Endpoint5_28Input) => 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/schema/instruction-entry").ValueTooLargeError | ClientError | HttpClientError.HttpClientError, never>;
|
|
62
|
+
remove: (input: Endpoint5_29Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
60
63
|
};
|
|
61
64
|
};
|
|
62
|
-
generate: (input:
|
|
63
|
-
log: (input:
|
|
64
|
-
interrupt: (input:
|
|
65
|
-
background: (input:
|
|
66
|
-
message: (input:
|
|
65
|
+
generate: (input: Endpoint5_30Input) => Effect.Effect<Endpoint5_30Output, 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 | ClientError | HttpClientError.HttpClientError, never>;
|
|
66
|
+
log: (input: Endpoint5_31Input) => Stream.Stream<Endpoint5_31Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError | Sse.Retry, never>;
|
|
67
|
+
interrupt: (input: Endpoint5_32Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
68
|
+
background: (input: Endpoint5_33Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
69
|
+
message: (input: Endpoint5_34Input) => Effect.Effect<import("@opencode-ai/schema/session-message").Info, 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").MessageNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
67
70
|
};
|
|
68
71
|
message: {
|
|
69
72
|
list: (input: Endpoint6_0Input) => Effect.Effect<Endpoint6_0Output, 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 | import("@opencode-ai/protocol/errors").InvalidCursorError | ClientError | HttpClientError.HttpClientError, never>;
|
|
@@ -518,8 +521,8 @@ export declare const make: (options?: {
|
|
|
518
521
|
} | {
|
|
519
522
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
520
523
|
readonly data: {
|
|
521
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
522
524
|
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
525
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
523
526
|
};
|
|
524
527
|
readonly durable: {
|
|
525
528
|
readonly aggregateID: string;
|
|
@@ -538,7 +541,6 @@ export declare const make: (options?: {
|
|
|
538
541
|
} | {
|
|
539
542
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
540
543
|
readonly data: {
|
|
541
|
-
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
542
544
|
readonly input: {
|
|
543
545
|
readonly type: "user";
|
|
544
546
|
readonly data: {
|
|
@@ -584,6 +586,7 @@ export declare const make: (options?: {
|
|
|
584
586
|
};
|
|
585
587
|
readonly delivery: "steer" | "queue";
|
|
586
588
|
};
|
|
589
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
587
590
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
588
591
|
};
|
|
589
592
|
readonly durable: {
|
|
@@ -600,6 +603,66 @@ export declare const make: (options?: {
|
|
|
600
603
|
readonly metadata?: {
|
|
601
604
|
readonly [x: string]: unknown;
|
|
602
605
|
} | undefined;
|
|
606
|
+
} | {
|
|
607
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
608
|
+
readonly data: {
|
|
609
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
610
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
611
|
+
};
|
|
612
|
+
readonly durable: {
|
|
613
|
+
readonly aggregateID: string;
|
|
614
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
615
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
616
|
+
};
|
|
617
|
+
readonly type: "session.input.cancelled";
|
|
618
|
+
readonly created: import("effect/DateTime").Utc;
|
|
619
|
+
readonly location?: {
|
|
620
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
621
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
622
|
+
} | undefined;
|
|
623
|
+
readonly metadata?: {
|
|
624
|
+
readonly [x: string]: unknown;
|
|
625
|
+
} | undefined;
|
|
626
|
+
} | {
|
|
627
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
628
|
+
readonly data: {
|
|
629
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
630
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
631
|
+
};
|
|
632
|
+
readonly durable: {
|
|
633
|
+
readonly aggregateID: string;
|
|
634
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
635
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
636
|
+
};
|
|
637
|
+
readonly type: "session.input.steered";
|
|
638
|
+
readonly created: import("effect/DateTime").Utc;
|
|
639
|
+
readonly location?: {
|
|
640
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
641
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
642
|
+
} | undefined;
|
|
643
|
+
readonly metadata?: {
|
|
644
|
+
readonly [x: string]: unknown;
|
|
645
|
+
} | undefined;
|
|
646
|
+
} | {
|
|
647
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
648
|
+
readonly data: {
|
|
649
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
650
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
651
|
+
};
|
|
652
|
+
readonly durable: {
|
|
653
|
+
readonly aggregateID: string;
|
|
654
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
655
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
656
|
+
};
|
|
657
|
+
readonly type: "session.input.queued";
|
|
658
|
+
readonly created: import("effect/DateTime").Utc;
|
|
659
|
+
readonly location?: {
|
|
660
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
661
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
662
|
+
} | undefined;
|
|
663
|
+
readonly metadata?: {
|
|
664
|
+
readonly [x: string]: unknown;
|
|
665
|
+
} | undefined;
|
|
603
666
|
} | {
|
|
604
667
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
605
668
|
readonly data: {
|
|
@@ -114,20 +114,23 @@ const Endpoint5_20 = (raw) => (input) => preserveEffect()(raw["session.revert.cl
|
|
|
114
114
|
const Endpoint5_21 = (raw) => (input) => preserveEffect()(raw["session.revert.commit"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
115
115
|
const Endpoint5_22 = (raw) => (input) => preserveEffect()(raw["session.context"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
116
116
|
const Endpoint5_23 = (raw) => (input) => preserveEffect()(raw["session.pending.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
117
|
-
const Endpoint5_24 = (raw) => (input) => preserveEffect()(raw["session.
|
|
118
|
-
const Endpoint5_25 = (raw) => (input) => preserveEffect()(raw["session.
|
|
117
|
+
const Endpoint5_24 = (raw) => (input) => preserveEffect()(raw["session.pending.cancel"]({ params: { sessionID: input["sessionID"], inputID: input["inputID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
118
|
+
const Endpoint5_25 = (raw) => (input) => preserveEffect()(raw["session.pending.steer"]({ params: { sessionID: input["sessionID"], inputID: input["inputID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
119
|
+
const Endpoint5_26 = (raw) => (input) => preserveEffect()(raw["session.pending.queue"]({ params: { sessionID: input["sessionID"], inputID: input["inputID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
120
|
+
const Endpoint5_27 = (raw) => (input) => preserveEffect()(raw["session.instructions.entry.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
121
|
+
const Endpoint5_28 = (raw) => (input) => preserveEffect()(raw["session.instructions.entry.put"]({
|
|
119
122
|
params: { sessionID: input["sessionID"], key: input["key"] },
|
|
120
123
|
payload: { value: input["value"] },
|
|
121
124
|
}).pipe(Effect.mapError(mapClientError)));
|
|
122
|
-
const
|
|
123
|
-
const
|
|
124
|
-
const
|
|
125
|
+
const Endpoint5_29 = (raw) => (input) => preserveEffect()(raw["session.instructions.entry.remove"]({ params: { sessionID: input["sessionID"], key: input["key"] } }).pipe(Effect.mapError(mapClientError)));
|
|
126
|
+
const Endpoint5_30 = (raw) => (input) => preserveEffect()(raw["session.generate"]({ params: { sessionID: input["sessionID"] }, payload: { prompt: input["prompt"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
127
|
+
const Endpoint5_31 = (raw) => (input) => preserveStream()(Stream.unwrap(raw["session.log"]({
|
|
125
128
|
params: { sessionID: input["sessionID"] },
|
|
126
129
|
query: { after: input["after"], follow: input["follow"] },
|
|
127
130
|
}).pipe(Effect.mapError(mapClientError), Effect.map((stream) => stream.pipe(Stream.mapError(mapClientError))))));
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
const
|
|
131
|
+
const Endpoint5_32 = (raw) => (input) => preserveEffect()(raw["session.interrupt"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
132
|
+
const Endpoint5_33 = (raw) => (input) => preserveEffect()(raw["session.background"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
133
|
+
const Endpoint5_34 = (raw) => (input) => preserveEffect()(raw["session.message"]({ params: { sessionID: input["sessionID"], messageID: input["messageID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
131
134
|
const adaptGroup5 = (raw) => ({
|
|
132
135
|
list: Endpoint5_0(raw),
|
|
133
136
|
create: Endpoint5_1(raw),
|
|
@@ -150,13 +153,13 @@ const adaptGroup5 = (raw) => ({
|
|
|
150
153
|
wait: Endpoint5_18(raw),
|
|
151
154
|
revert: { stage: Endpoint5_19(raw), clear: Endpoint5_20(raw), commit: Endpoint5_21(raw) },
|
|
152
155
|
context: Endpoint5_22(raw),
|
|
153
|
-
pending: { list: Endpoint5_23(raw) },
|
|
154
|
-
instructions: { entry: { list:
|
|
155
|
-
generate:
|
|
156
|
-
log:
|
|
157
|
-
interrupt:
|
|
158
|
-
background:
|
|
159
|
-
message:
|
|
156
|
+
pending: { list: Endpoint5_23(raw), cancel: Endpoint5_24(raw), steer: Endpoint5_25(raw), queue: Endpoint5_26(raw) },
|
|
157
|
+
instructions: { entry: { list: Endpoint5_27(raw), put: Endpoint5_28(raw), remove: Endpoint5_29(raw) } },
|
|
158
|
+
generate: Endpoint5_30(raw),
|
|
159
|
+
log: Endpoint5_31(raw),
|
|
160
|
+
interrupt: Endpoint5_32(raw),
|
|
161
|
+
background: Endpoint5_33(raw),
|
|
162
|
+
message: Endpoint5_34(raw),
|
|
160
163
|
});
|
|
161
164
|
const Endpoint6_0 = (raw) => (input) => preserveEffect()(raw["session.messages"]({
|
|
162
165
|
params: { sessionID: input["sessionID"] },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionPendingListInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectDirectoriesInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionRequestListInput, QuestionRequestListOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsGetInput, VcsGetOutput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput } from "./types";
|
|
1
|
+
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionPendingListInput, SessionPendingCancelInput, SessionPendingSteerInput, SessionPendingQueueInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectDirectoriesInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionRequestListInput, QuestionRequestListOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsGetInput, VcsGetOutput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput } from "./types";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -56,6 +56,9 @@ export declare function make(options: ClientOptions): {
|
|
|
56
56
|
context: (input: SessionContextInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionMessageInfo[]>;
|
|
57
57
|
pending: {
|
|
58
58
|
list: (input: SessionPendingListInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionPendingInfo[]>;
|
|
59
|
+
cancel: (input: SessionPendingCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
60
|
+
steer: (input: SessionPendingSteerInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
61
|
+
queue: (input: SessionPendingQueueInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
59
62
|
};
|
|
60
63
|
instructions: {
|
|
61
64
|
entry: {
|
|
@@ -408,6 +408,27 @@ export function make(options) {
|
|
|
408
408
|
declaredStatuses: [404, 401, 400],
|
|
409
409
|
empty: false,
|
|
410
410
|
}, requestOptions).then((value) => value.data),
|
|
411
|
+
cancel: (input, requestOptions) => request({
|
|
412
|
+
method: "DELETE",
|
|
413
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/pending/${encodeURIComponent(input.inputID)}`,
|
|
414
|
+
successStatus: 204,
|
|
415
|
+
declaredStatuses: [409, 404, 401, 400],
|
|
416
|
+
empty: true,
|
|
417
|
+
}, requestOptions),
|
|
418
|
+
steer: (input, requestOptions) => request({
|
|
419
|
+
method: "POST",
|
|
420
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/pending/${encodeURIComponent(input.inputID)}/steer`,
|
|
421
|
+
successStatus: 204,
|
|
422
|
+
declaredStatuses: [409, 404, 401, 400],
|
|
423
|
+
empty: true,
|
|
424
|
+
}, requestOptions),
|
|
425
|
+
queue: (input, requestOptions) => request({
|
|
426
|
+
method: "POST",
|
|
427
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/pending/${encodeURIComponent(input.inputID)}/queue`,
|
|
428
|
+
successStatus: 204,
|
|
429
|
+
declaredStatuses: [409, 404, 401, 400],
|
|
430
|
+
empty: true,
|
|
431
|
+
}, requestOptions),
|
|
411
432
|
},
|
|
412
433
|
instructions: {
|
|
413
434
|
entry: {
|
|
@@ -783,6 +783,60 @@ export type SessionInputPromoted = {
|
|
|
783
783
|
inputID: string;
|
|
784
784
|
};
|
|
785
785
|
};
|
|
786
|
+
export type SessionInputCancelled = {
|
|
787
|
+
id: string;
|
|
788
|
+
created: number;
|
|
789
|
+
metadata?: {
|
|
790
|
+
[x: string]: any;
|
|
791
|
+
};
|
|
792
|
+
type: "session.input.cancelled";
|
|
793
|
+
durable: {
|
|
794
|
+
aggregateID: string;
|
|
795
|
+
seq: number;
|
|
796
|
+
version: 1;
|
|
797
|
+
};
|
|
798
|
+
location?: LocationRef;
|
|
799
|
+
data: {
|
|
800
|
+
sessionID: string;
|
|
801
|
+
inputID: string;
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
export type SessionInputSteered = {
|
|
805
|
+
id: string;
|
|
806
|
+
created: number;
|
|
807
|
+
metadata?: {
|
|
808
|
+
[x: string]: any;
|
|
809
|
+
};
|
|
810
|
+
type: "session.input.steered";
|
|
811
|
+
durable: {
|
|
812
|
+
aggregateID: string;
|
|
813
|
+
seq: number;
|
|
814
|
+
version: 1;
|
|
815
|
+
};
|
|
816
|
+
location?: LocationRef;
|
|
817
|
+
data: {
|
|
818
|
+
sessionID: string;
|
|
819
|
+
inputID: string;
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
export type SessionInputQueued = {
|
|
823
|
+
id: string;
|
|
824
|
+
created: number;
|
|
825
|
+
metadata?: {
|
|
826
|
+
[x: string]: any;
|
|
827
|
+
};
|
|
828
|
+
type: "session.input.queued";
|
|
829
|
+
durable: {
|
|
830
|
+
aggregateID: string;
|
|
831
|
+
seq: number;
|
|
832
|
+
version: 1;
|
|
833
|
+
};
|
|
834
|
+
location?: LocationRef;
|
|
835
|
+
data: {
|
|
836
|
+
sessionID: string;
|
|
837
|
+
inputID: string;
|
|
838
|
+
};
|
|
839
|
+
};
|
|
786
840
|
export type SessionExecutionStarted = {
|
|
787
841
|
id: string;
|
|
788
842
|
created: number;
|
|
@@ -2773,7 +2827,7 @@ export type FormCreated = {
|
|
|
2773
2827
|
form: FormInfo1;
|
|
2774
2828
|
};
|
|
2775
2829
|
};
|
|
2776
|
-
export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded;
|
|
2830
|
+
export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionInputCancelled | SessionInputSteered | SessionInputQueued | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded;
|
|
2777
2831
|
export type SessionTransferData = {
|
|
2778
2832
|
info: SessionInfo;
|
|
2779
2833
|
messages: Array<SessionMessageInfo>;
|
|
@@ -2785,7 +2839,7 @@ export type SessionMessagesResponse = {
|
|
|
2785
2839
|
next?: string | null;
|
|
2786
2840
|
};
|
|
2787
2841
|
};
|
|
2788
|
-
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginAdded | PluginUpdated | ProjectDirectoriesUpdated | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | QuestionAsked | QuestionReplied | QuestionRejected | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatus2 | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventServerConnected;
|
|
2842
|
+
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionInputCancelled | SessionInputSteered | SessionInputQueued | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginAdded | PluginUpdated | ProjectDirectoriesUpdated | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | QuestionAsked | QuestionReplied | QuestionRejected | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatus2 | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventServerConnected;
|
|
2789
2843
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
2790
2844
|
export type UnauthorizedError = {
|
|
2791
2845
|
readonly _tag: "UnauthorizedError";
|
|
@@ -5061,6 +5115,39 @@ export type SessionPendingListInput = {
|
|
|
5061
5115
|
export type SessionPendingListOutput = {
|
|
5062
5116
|
data: Array<SessionPendingInfo>;
|
|
5063
5117
|
}["data"];
|
|
5118
|
+
export type SessionPendingCancelInput = {
|
|
5119
|
+
readonly sessionID: {
|
|
5120
|
+
readonly sessionID: string;
|
|
5121
|
+
readonly inputID: string;
|
|
5122
|
+
}["sessionID"];
|
|
5123
|
+
readonly inputID: {
|
|
5124
|
+
readonly sessionID: string;
|
|
5125
|
+
readonly inputID: string;
|
|
5126
|
+
}["inputID"];
|
|
5127
|
+
};
|
|
5128
|
+
export type SessionPendingCancelOutput = void;
|
|
5129
|
+
export type SessionPendingSteerInput = {
|
|
5130
|
+
readonly sessionID: {
|
|
5131
|
+
readonly sessionID: string;
|
|
5132
|
+
readonly inputID: string;
|
|
5133
|
+
}["sessionID"];
|
|
5134
|
+
readonly inputID: {
|
|
5135
|
+
readonly sessionID: string;
|
|
5136
|
+
readonly inputID: string;
|
|
5137
|
+
}["inputID"];
|
|
5138
|
+
};
|
|
5139
|
+
export type SessionPendingSteerOutput = void;
|
|
5140
|
+
export type SessionPendingQueueInput = {
|
|
5141
|
+
readonly sessionID: {
|
|
5142
|
+
readonly sessionID: string;
|
|
5143
|
+
readonly inputID: string;
|
|
5144
|
+
}["sessionID"];
|
|
5145
|
+
readonly inputID: {
|
|
5146
|
+
readonly sessionID: string;
|
|
5147
|
+
readonly inputID: string;
|
|
5148
|
+
}["inputID"];
|
|
5149
|
+
};
|
|
5150
|
+
export type SessionPendingQueueOutput = void;
|
|
5064
5151
|
export type SessionInstructionsEntryListInput = {
|
|
5065
5152
|
readonly sessionID: {
|
|
5066
5153
|
readonly sessionID: 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-16977",
|
|
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-16977",
|
|
57
|
+
"@opencode-ai/protocol": "0.0.0-next-16977"
|
|
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-16977",
|
|
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",
|