@opencode-ai/client 0.0.0-next-15174 → 0.0.0-next-15180
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 +7 -2
- package/dist/effect/generated/client.d.ts +126 -66
- package/dist/effect/generated/client.js +12 -2
- package/dist/promise/generated/client.d.ts +30 -7
- package/dist/promise/generated/client.js +15 -5
- package/dist/promise/generated/types.d.ts +314 -144
- package/package.json +4 -4
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -118,7 +118,10 @@ type Endpoint5_10Request = Parameters<RawClient["server.session"]["session.promp
|
|
|
118
118
|
export type Endpoint5_10Input = {
|
|
119
119
|
readonly sessionID: Endpoint5_10Request["params"]["sessionID"];
|
|
120
120
|
readonly id?: Endpoint5_10Request["payload"]["id"];
|
|
121
|
-
readonly
|
|
121
|
+
readonly text: Endpoint5_10Request["payload"]["text"];
|
|
122
|
+
readonly files?: Endpoint5_10Request["payload"]["files"];
|
|
123
|
+
readonly agents?: Endpoint5_10Request["payload"]["agents"];
|
|
124
|
+
readonly metadata?: Endpoint5_10Request["payload"]["metadata"];
|
|
122
125
|
readonly delivery?: Endpoint5_10Request["payload"]["delivery"];
|
|
123
126
|
readonly resume?: Endpoint5_10Request["payload"]["resume"];
|
|
124
127
|
};
|
|
@@ -151,12 +154,14 @@ export type SessionSkillOperation<E = never> = (input: Endpoint5_12Input) => Eff
|
|
|
151
154
|
type Endpoint5_13Request = Parameters<RawClient["server.session"]["session.synthetic"]>[0];
|
|
152
155
|
export type Endpoint5_13Input = {
|
|
153
156
|
readonly sessionID: Endpoint5_13Request["params"]["sessionID"];
|
|
157
|
+
readonly id?: Endpoint5_13Request["payload"]["id"];
|
|
154
158
|
readonly text: Endpoint5_13Request["payload"]["text"];
|
|
155
159
|
readonly description?: Endpoint5_13Request["payload"]["description"];
|
|
156
160
|
readonly metadata?: Endpoint5_13Request["payload"]["metadata"];
|
|
161
|
+
readonly delivery?: Endpoint5_13Request["payload"]["delivery"];
|
|
157
162
|
readonly resume?: Endpoint5_13Request["payload"]["resume"];
|
|
158
163
|
};
|
|
159
|
-
export type Endpoint5_13Output = EffectValue<ReturnType<RawClient["server.session"]["session.synthetic"]
|
|
164
|
+
export type Endpoint5_13Output = EffectValue<ReturnType<RawClient["server.session"]["session.synthetic"]>>["data"];
|
|
160
165
|
export type SessionSyntheticOperation<E = never> = (input: Endpoint5_13Input) => Effect.Effect<Endpoint5_13Output, E>;
|
|
161
166
|
type Endpoint5_14Request = Parameters<RawClient["server.session"]["session.shell"]>[0];
|
|
162
167
|
export type Endpoint5_14Input = {
|
|
@@ -74,7 +74,10 @@ type Endpoint5_10Request = Parameters<RawClient["server.session"]["session.promp
|
|
|
74
74
|
type Endpoint5_10Input = {
|
|
75
75
|
readonly sessionID: Endpoint5_10Request["params"]["sessionID"];
|
|
76
76
|
readonly id?: Endpoint5_10Request["payload"]["id"];
|
|
77
|
-
readonly
|
|
77
|
+
readonly text: Endpoint5_10Request["payload"]["text"];
|
|
78
|
+
readonly files?: Endpoint5_10Request["payload"]["files"];
|
|
79
|
+
readonly agents?: Endpoint5_10Request["payload"]["agents"];
|
|
80
|
+
readonly metadata?: Endpoint5_10Request["payload"]["metadata"];
|
|
78
81
|
readonly delivery?: Endpoint5_10Request["payload"]["delivery"];
|
|
79
82
|
readonly resume?: Endpoint5_10Request["payload"]["resume"];
|
|
80
83
|
};
|
|
@@ -101,9 +104,11 @@ type Endpoint5_12Input = {
|
|
|
101
104
|
type Endpoint5_13Request = Parameters<RawClient["server.session"]["session.synthetic"]>[0];
|
|
102
105
|
type Endpoint5_13Input = {
|
|
103
106
|
readonly sessionID: Endpoint5_13Request["params"]["sessionID"];
|
|
107
|
+
readonly id?: Endpoint5_13Request["payload"]["id"];
|
|
104
108
|
readonly text: Endpoint5_13Request["payload"]["text"];
|
|
105
109
|
readonly description?: Endpoint5_13Request["payload"]["description"];
|
|
106
110
|
readonly metadata?: Endpoint5_13Request["payload"]["metadata"];
|
|
111
|
+
readonly delivery?: Endpoint5_13Request["payload"]["delivery"];
|
|
107
112
|
readonly resume?: Endpoint5_13Request["payload"]["resume"];
|
|
108
113
|
};
|
|
109
114
|
type Endpoint5_14Request = Parameters<RawClient["server.session"]["session.shell"]>[0];
|
|
@@ -763,11 +768,12 @@ export declare const make: (options?: {
|
|
|
763
768
|
rename: (input: Endpoint5_8Input) => 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>;
|
|
764
769
|
move: (input: Endpoint5_9Input) => 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>;
|
|
765
770
|
prompt: (input: Endpoint5_10Input) => Effect.Effect<{
|
|
766
|
-
readonly
|
|
767
|
-
readonly
|
|
768
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
769
|
-
readonly prompt: {
|
|
771
|
+
readonly type: "user";
|
|
772
|
+
readonly data: {
|
|
770
773
|
readonly text: string;
|
|
774
|
+
readonly metadata?: {
|
|
775
|
+
readonly [x: string]: unknown;
|
|
776
|
+
} | undefined;
|
|
771
777
|
readonly files?: readonly {
|
|
772
778
|
readonly data: string;
|
|
773
779
|
readonly mime: string;
|
|
@@ -795,15 +801,19 @@ export declare const make: (options?: {
|
|
|
795
801
|
}[] | undefined;
|
|
796
802
|
};
|
|
797
803
|
readonly delivery: "steer" | "queue";
|
|
804
|
+
readonly admittedSeq: number;
|
|
805
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
806
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
798
807
|
readonly timeCreated: import("effect/DateTime").Utc;
|
|
799
808
|
readonly promotedSeq?: number | undefined;
|
|
800
809
|
}, 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>;
|
|
801
810
|
command: (input: Endpoint5_11Input) => Effect.Effect<{
|
|
802
|
-
readonly
|
|
803
|
-
readonly
|
|
804
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
805
|
-
readonly prompt: {
|
|
811
|
+
readonly type: "user";
|
|
812
|
+
readonly data: {
|
|
806
813
|
readonly text: string;
|
|
814
|
+
readonly metadata?: {
|
|
815
|
+
readonly [x: string]: unknown;
|
|
816
|
+
} | undefined;
|
|
807
817
|
readonly files?: readonly {
|
|
808
818
|
readonly data: string;
|
|
809
819
|
readonly mime: string;
|
|
@@ -831,11 +841,29 @@ export declare const make: (options?: {
|
|
|
831
841
|
}[] | undefined;
|
|
832
842
|
};
|
|
833
843
|
readonly delivery: "steer" | "queue";
|
|
844
|
+
readonly admittedSeq: number;
|
|
845
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
846
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
834
847
|
readonly timeCreated: import("effect/DateTime").Utc;
|
|
835
848
|
readonly promotedSeq?: number | undefined;
|
|
836
849
|
}, 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>;
|
|
837
850
|
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>;
|
|
838
|
-
synthetic: (input: Endpoint5_13Input) => Effect.Effect<
|
|
851
|
+
synthetic: (input: Endpoint5_13Input) => Effect.Effect<{
|
|
852
|
+
readonly type: "synthetic";
|
|
853
|
+
readonly data: {
|
|
854
|
+
readonly text: string;
|
|
855
|
+
readonly description?: string | undefined;
|
|
856
|
+
readonly metadata?: {
|
|
857
|
+
readonly [x: string]: unknown;
|
|
858
|
+
} | undefined;
|
|
859
|
+
};
|
|
860
|
+
readonly delivery: "steer" | "queue";
|
|
861
|
+
readonly admittedSeq: number;
|
|
862
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
863
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
864
|
+
readonly timeCreated: import("effect/DateTime").Utc;
|
|
865
|
+
readonly promotedSeq?: number | undefined;
|
|
866
|
+
}, 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>;
|
|
839
867
|
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>;
|
|
840
868
|
compact: (input: Endpoint5_15Input) => Effect.Effect<{
|
|
841
869
|
readonly type: "compaction";
|
|
@@ -1297,7 +1325,7 @@ export declare const make: (options?: {
|
|
|
1297
1325
|
} | {
|
|
1298
1326
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1299
1327
|
readonly created: import("effect/DateTime").Utc;
|
|
1300
|
-
readonly type: "session.
|
|
1328
|
+
readonly type: "session.input.promoted";
|
|
1301
1329
|
readonly durable: {
|
|
1302
1330
|
readonly aggregateID: string;
|
|
1303
1331
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
@@ -1317,7 +1345,7 @@ export declare const make: (options?: {
|
|
|
1317
1345
|
} | {
|
|
1318
1346
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1319
1347
|
readonly created: import("effect/DateTime").Utc;
|
|
1320
|
-
readonly type: "session.
|
|
1348
|
+
readonly type: "session.input.admitted";
|
|
1321
1349
|
readonly durable: {
|
|
1322
1350
|
readonly aggregateID: string;
|
|
1323
1351
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
@@ -1325,35 +1353,51 @@ export declare const make: (options?: {
|
|
|
1325
1353
|
};
|
|
1326
1354
|
readonly data: {
|
|
1327
1355
|
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1328
|
-
readonly
|
|
1329
|
-
readonly
|
|
1330
|
-
readonly
|
|
1331
|
-
readonly
|
|
1332
|
-
readonly
|
|
1333
|
-
|
|
1334
|
-
readonly type: "inline";
|
|
1335
|
-
} | {
|
|
1336
|
-
readonly type: "uri";
|
|
1337
|
-
readonly uri: string;
|
|
1338
|
-
};
|
|
1339
|
-
readonly name?: string | undefined;
|
|
1340
|
-
readonly description?: string | undefined;
|
|
1341
|
-
readonly mention?: {
|
|
1342
|
-
readonly start: number;
|
|
1343
|
-
readonly end: number;
|
|
1344
|
-
readonly text: string;
|
|
1356
|
+
readonly input: {
|
|
1357
|
+
readonly type: "user";
|
|
1358
|
+
readonly data: {
|
|
1359
|
+
readonly text: string;
|
|
1360
|
+
readonly metadata?: {
|
|
1361
|
+
readonly [x: string]: unknown;
|
|
1345
1362
|
} | undefined;
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1363
|
+
readonly files?: readonly {
|
|
1364
|
+
readonly data: string;
|
|
1365
|
+
readonly mime: string;
|
|
1366
|
+
readonly source: {
|
|
1367
|
+
readonly type: "inline";
|
|
1368
|
+
} | {
|
|
1369
|
+
readonly type: "uri";
|
|
1370
|
+
readonly uri: string;
|
|
1371
|
+
};
|
|
1372
|
+
readonly name?: string | undefined;
|
|
1373
|
+
readonly description?: string | undefined;
|
|
1374
|
+
readonly mention?: {
|
|
1375
|
+
readonly start: number;
|
|
1376
|
+
readonly end: number;
|
|
1377
|
+
readonly text: string;
|
|
1378
|
+
} | undefined;
|
|
1379
|
+
}[] | undefined;
|
|
1380
|
+
readonly agents?: readonly {
|
|
1381
|
+
readonly name: string;
|
|
1382
|
+
readonly mention?: {
|
|
1383
|
+
readonly start: number;
|
|
1384
|
+
readonly end: number;
|
|
1385
|
+
readonly text: string;
|
|
1386
|
+
} | undefined;
|
|
1387
|
+
}[] | undefined;
|
|
1388
|
+
};
|
|
1389
|
+
readonly delivery: "steer" | "queue";
|
|
1390
|
+
} | {
|
|
1391
|
+
readonly type: "synthetic";
|
|
1392
|
+
readonly data: {
|
|
1393
|
+
readonly text: string;
|
|
1394
|
+
readonly description?: string | undefined;
|
|
1395
|
+
readonly metadata?: {
|
|
1396
|
+
readonly [x: string]: unknown;
|
|
1353
1397
|
} | undefined;
|
|
1354
|
-
}
|
|
1398
|
+
};
|
|
1399
|
+
readonly delivery: "steer" | "queue";
|
|
1355
1400
|
};
|
|
1356
|
-
readonly delivery: "steer" | "queue";
|
|
1357
1401
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1358
1402
|
};
|
|
1359
1403
|
readonly metadata?: {
|
|
@@ -3878,7 +3922,7 @@ export declare const make: (options?: {
|
|
|
3878
3922
|
} | {
|
|
3879
3923
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
3880
3924
|
readonly created: import("effect/DateTime").Utc;
|
|
3881
|
-
readonly type: "session.
|
|
3925
|
+
readonly type: "session.input.promoted";
|
|
3882
3926
|
readonly durable: {
|
|
3883
3927
|
readonly aggregateID: string;
|
|
3884
3928
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
@@ -3898,7 +3942,7 @@ export declare const make: (options?: {
|
|
|
3898
3942
|
} | {
|
|
3899
3943
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
3900
3944
|
readonly created: import("effect/DateTime").Utc;
|
|
3901
|
-
readonly type: "session.
|
|
3945
|
+
readonly type: "session.input.admitted";
|
|
3902
3946
|
readonly durable: {
|
|
3903
3947
|
readonly aggregateID: string;
|
|
3904
3948
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
@@ -3906,35 +3950,51 @@ export declare const make: (options?: {
|
|
|
3906
3950
|
};
|
|
3907
3951
|
readonly data: {
|
|
3908
3952
|
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3909
|
-
readonly
|
|
3910
|
-
readonly
|
|
3911
|
-
readonly
|
|
3912
|
-
readonly
|
|
3913
|
-
readonly
|
|
3914
|
-
|
|
3915
|
-
readonly type: "inline";
|
|
3916
|
-
} | {
|
|
3917
|
-
readonly type: "uri";
|
|
3918
|
-
readonly uri: string;
|
|
3919
|
-
};
|
|
3920
|
-
readonly name?: string | undefined;
|
|
3921
|
-
readonly description?: string | undefined;
|
|
3922
|
-
readonly mention?: {
|
|
3923
|
-
readonly start: number;
|
|
3924
|
-
readonly end: number;
|
|
3925
|
-
readonly text: string;
|
|
3953
|
+
readonly input: {
|
|
3954
|
+
readonly type: "user";
|
|
3955
|
+
readonly data: {
|
|
3956
|
+
readonly text: string;
|
|
3957
|
+
readonly metadata?: {
|
|
3958
|
+
readonly [x: string]: unknown;
|
|
3926
3959
|
} | undefined;
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3960
|
+
readonly files?: readonly {
|
|
3961
|
+
readonly data: string;
|
|
3962
|
+
readonly mime: string;
|
|
3963
|
+
readonly source: {
|
|
3964
|
+
readonly type: "inline";
|
|
3965
|
+
} | {
|
|
3966
|
+
readonly type: "uri";
|
|
3967
|
+
readonly uri: string;
|
|
3968
|
+
};
|
|
3969
|
+
readonly name?: string | undefined;
|
|
3970
|
+
readonly description?: string | undefined;
|
|
3971
|
+
readonly mention?: {
|
|
3972
|
+
readonly start: number;
|
|
3973
|
+
readonly end: number;
|
|
3974
|
+
readonly text: string;
|
|
3975
|
+
} | undefined;
|
|
3976
|
+
}[] | undefined;
|
|
3977
|
+
readonly agents?: readonly {
|
|
3978
|
+
readonly name: string;
|
|
3979
|
+
readonly mention?: {
|
|
3980
|
+
readonly start: number;
|
|
3981
|
+
readonly end: number;
|
|
3982
|
+
readonly text: string;
|
|
3983
|
+
} | undefined;
|
|
3984
|
+
}[] | undefined;
|
|
3985
|
+
};
|
|
3986
|
+
readonly delivery: "steer" | "queue";
|
|
3987
|
+
} | {
|
|
3988
|
+
readonly type: "synthetic";
|
|
3989
|
+
readonly data: {
|
|
3990
|
+
readonly text: string;
|
|
3991
|
+
readonly description?: string | undefined;
|
|
3992
|
+
readonly metadata?: {
|
|
3993
|
+
readonly [x: string]: unknown;
|
|
3934
3994
|
} | undefined;
|
|
3935
|
-
}
|
|
3995
|
+
};
|
|
3996
|
+
readonly delivery: "steer" | "queue";
|
|
3936
3997
|
};
|
|
3937
|
-
readonly delivery: "steer" | "queue";
|
|
3938
3998
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
3939
3999
|
};
|
|
3940
4000
|
readonly metadata?: {
|
|
@@ -47,7 +47,15 @@ const Endpoint5_9 = (raw) => (input) => raw["session.move"]({
|
|
|
47
47
|
}).pipe(Effect.mapError(mapClientError));
|
|
48
48
|
const Endpoint5_10 = (raw) => (input) => raw["session.prompt"]({
|
|
49
49
|
params: { sessionID: input["sessionID"] },
|
|
50
|
-
payload: {
|
|
50
|
+
payload: {
|
|
51
|
+
id: input["id"],
|
|
52
|
+
text: input["text"],
|
|
53
|
+
files: input["files"],
|
|
54
|
+
agents: input["agents"],
|
|
55
|
+
metadata: input["metadata"],
|
|
56
|
+
delivery: input["delivery"],
|
|
57
|
+
resume: input["resume"],
|
|
58
|
+
},
|
|
51
59
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
52
60
|
const Endpoint5_11 = (raw) => (input) => raw["session.command"]({
|
|
53
61
|
params: { sessionID: input["sessionID"] },
|
|
@@ -70,12 +78,14 @@ const Endpoint5_12 = (raw) => (input) => raw["session.skill"]({
|
|
|
70
78
|
const Endpoint5_13 = (raw) => (input) => raw["session.synthetic"]({
|
|
71
79
|
params: { sessionID: input["sessionID"] },
|
|
72
80
|
payload: {
|
|
81
|
+
id: input["id"],
|
|
73
82
|
text: input["text"],
|
|
74
83
|
description: input["description"],
|
|
75
84
|
metadata: input["metadata"],
|
|
85
|
+
delivery: input["delivery"],
|
|
76
86
|
resume: input["resume"],
|
|
77
87
|
},
|
|
78
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
88
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
79
89
|
const Endpoint5_14 = (raw) => (input) => raw["session.shell"]({
|
|
80
90
|
params: { sessionID: input["sessionID"] },
|
|
81
91
|
payload: { id: input["id"], command: input["command"] },
|
|
@@ -184,7 +184,10 @@ export declare function make(options: ClientOptions): {
|
|
|
184
184
|
readonly admittedSeq: number;
|
|
185
185
|
readonly id: string;
|
|
186
186
|
readonly sessionID: string;
|
|
187
|
-
readonly
|
|
187
|
+
readonly timeCreated: number;
|
|
188
|
+
readonly promotedSeq?: number;
|
|
189
|
+
readonly type: "user";
|
|
190
|
+
readonly data: {
|
|
188
191
|
readonly text: string;
|
|
189
192
|
readonly files?: ReadonlyArray<{
|
|
190
193
|
readonly data: string;
|
|
@@ -211,16 +214,20 @@ export declare function make(options: ClientOptions): {
|
|
|
211
214
|
readonly text: string;
|
|
212
215
|
};
|
|
213
216
|
}>;
|
|
217
|
+
readonly metadata?: {
|
|
218
|
+
readonly [x: string]: import("./types").JsonValue;
|
|
219
|
+
};
|
|
214
220
|
};
|
|
215
221
|
readonly delivery: "steer" | "queue";
|
|
216
|
-
readonly timeCreated: number;
|
|
217
|
-
readonly promotedSeq?: number;
|
|
218
222
|
}>;
|
|
219
223
|
command: (input: SessionCommandInput, requestOptions?: RequestOptions) => Promise<{
|
|
220
224
|
readonly admittedSeq: number;
|
|
221
225
|
readonly id: string;
|
|
222
226
|
readonly sessionID: string;
|
|
223
|
-
readonly
|
|
227
|
+
readonly timeCreated: number;
|
|
228
|
+
readonly promotedSeq?: number;
|
|
229
|
+
readonly type: "user";
|
|
230
|
+
readonly data: {
|
|
224
231
|
readonly text: string;
|
|
225
232
|
readonly files?: ReadonlyArray<{
|
|
226
233
|
readonly data: string;
|
|
@@ -247,20 +254,36 @@ export declare function make(options: ClientOptions): {
|
|
|
247
254
|
readonly text: string;
|
|
248
255
|
};
|
|
249
256
|
}>;
|
|
257
|
+
readonly metadata?: {
|
|
258
|
+
readonly [x: string]: import("./types").JsonValue;
|
|
259
|
+
};
|
|
250
260
|
};
|
|
251
261
|
readonly delivery: "steer" | "queue";
|
|
262
|
+
}>;
|
|
263
|
+
skill: (input: SessionSkillInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
264
|
+
synthetic: (input: SessionSyntheticInput, requestOptions?: RequestOptions) => Promise<{
|
|
265
|
+
readonly admittedSeq: number;
|
|
266
|
+
readonly id: string;
|
|
267
|
+
readonly sessionID: string;
|
|
252
268
|
readonly timeCreated: number;
|
|
253
269
|
readonly promotedSeq?: number;
|
|
270
|
+
readonly type: "synthetic";
|
|
271
|
+
readonly data: {
|
|
272
|
+
readonly text: string;
|
|
273
|
+
readonly description?: string;
|
|
274
|
+
readonly metadata?: {
|
|
275
|
+
readonly [x: string]: import("./types").JsonValue;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
readonly delivery: "steer" | "queue";
|
|
254
279
|
}>;
|
|
255
|
-
skill: (input: SessionSkillInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
256
|
-
synthetic: (input: SessionSyntheticInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
257
280
|
shell: (input: SessionShellInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
258
281
|
compact: (input: SessionCompactInput, requestOptions?: RequestOptions) => Promise<{
|
|
259
|
-
readonly type: "compaction";
|
|
260
282
|
readonly admittedSeq: number;
|
|
261
283
|
readonly id: string;
|
|
262
284
|
readonly sessionID: string;
|
|
263
285
|
readonly timeCreated: number;
|
|
286
|
+
readonly type: "compaction";
|
|
264
287
|
readonly handledSeq?: number;
|
|
265
288
|
}>;
|
|
266
289
|
wait: (input: SessionWaitInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
@@ -258,7 +258,15 @@ export function make(options) {
|
|
|
258
258
|
prompt: (input, requestOptions) => request({
|
|
259
259
|
method: "POST",
|
|
260
260
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/prompt`,
|
|
261
|
-
body: {
|
|
261
|
+
body: {
|
|
262
|
+
id: input["id"],
|
|
263
|
+
text: input["text"],
|
|
264
|
+
files: input["files"],
|
|
265
|
+
agents: input["agents"],
|
|
266
|
+
metadata: input["metadata"],
|
|
267
|
+
delivery: input["delivery"],
|
|
268
|
+
resume: input["resume"],
|
|
269
|
+
},
|
|
262
270
|
successStatus: 200,
|
|
263
271
|
declaredStatuses: [409, 400, 404, 401],
|
|
264
272
|
empty: false,
|
|
@@ -293,15 +301,17 @@ export function make(options) {
|
|
|
293
301
|
method: "POST",
|
|
294
302
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/synthetic`,
|
|
295
303
|
body: {
|
|
304
|
+
id: input["id"],
|
|
296
305
|
text: input["text"],
|
|
297
306
|
description: input["description"],
|
|
298
307
|
metadata: input["metadata"],
|
|
308
|
+
delivery: input["delivery"],
|
|
299
309
|
resume: input["resume"],
|
|
300
310
|
},
|
|
301
|
-
successStatus:
|
|
302
|
-
declaredStatuses: [404, 400, 401],
|
|
303
|
-
empty:
|
|
304
|
-
}, requestOptions),
|
|
311
|
+
successStatus: 200,
|
|
312
|
+
declaredStatuses: [409, 404, 400, 401],
|
|
313
|
+
empty: false,
|
|
314
|
+
}, requestOptions).then((value) => value.data),
|
|
305
315
|
shell: (input, requestOptions) => request({
|
|
306
316
|
method: "POST",
|
|
307
317
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/shell`,
|
|
@@ -663,104 +663,189 @@ export type SessionPromptInput = {
|
|
|
663
663
|
}["sessionID"];
|
|
664
664
|
readonly id?: {
|
|
665
665
|
readonly id?: string | null;
|
|
666
|
-
readonly
|
|
667
|
-
|
|
668
|
-
readonly
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
readonly
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
readonly
|
|
679
|
-
|
|
680
|
-
readonly
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
666
|
+
readonly text: string;
|
|
667
|
+
readonly files?: ReadonlyArray<{
|
|
668
|
+
readonly uri: string;
|
|
669
|
+
readonly name?: string;
|
|
670
|
+
readonly description?: string;
|
|
671
|
+
readonly mention?: {
|
|
672
|
+
readonly start: number;
|
|
673
|
+
readonly end: number;
|
|
674
|
+
readonly text: string;
|
|
675
|
+
};
|
|
676
|
+
}>;
|
|
677
|
+
readonly agents?: ReadonlyArray<{
|
|
678
|
+
readonly name: string;
|
|
679
|
+
readonly mention?: {
|
|
680
|
+
readonly start: number;
|
|
681
|
+
readonly end: number;
|
|
682
|
+
readonly text: string;
|
|
683
|
+
};
|
|
684
|
+
}>;
|
|
685
|
+
readonly metadata?: {
|
|
686
|
+
readonly [x: string]: JsonValue;
|
|
686
687
|
};
|
|
687
688
|
readonly delivery?: "steer" | "queue" | null;
|
|
688
689
|
readonly resume?: boolean | null;
|
|
689
690
|
}["id"];
|
|
690
|
-
readonly
|
|
691
|
+
readonly text: {
|
|
691
692
|
readonly id?: string | null;
|
|
692
|
-
readonly
|
|
693
|
-
|
|
694
|
-
readonly
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
readonly
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
readonly
|
|
705
|
-
|
|
706
|
-
readonly
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
693
|
+
readonly text: string;
|
|
694
|
+
readonly files?: ReadonlyArray<{
|
|
695
|
+
readonly uri: string;
|
|
696
|
+
readonly name?: string;
|
|
697
|
+
readonly description?: string;
|
|
698
|
+
readonly mention?: {
|
|
699
|
+
readonly start: number;
|
|
700
|
+
readonly end: number;
|
|
701
|
+
readonly text: string;
|
|
702
|
+
};
|
|
703
|
+
}>;
|
|
704
|
+
readonly agents?: ReadonlyArray<{
|
|
705
|
+
readonly name: string;
|
|
706
|
+
readonly mention?: {
|
|
707
|
+
readonly start: number;
|
|
708
|
+
readonly end: number;
|
|
709
|
+
readonly text: string;
|
|
710
|
+
};
|
|
711
|
+
}>;
|
|
712
|
+
readonly metadata?: {
|
|
713
|
+
readonly [x: string]: JsonValue;
|
|
712
714
|
};
|
|
713
715
|
readonly delivery?: "steer" | "queue" | null;
|
|
714
716
|
readonly resume?: boolean | null;
|
|
715
|
-
}["
|
|
717
|
+
}["text"];
|
|
718
|
+
readonly files?: {
|
|
719
|
+
readonly id?: string | null;
|
|
720
|
+
readonly text: string;
|
|
721
|
+
readonly files?: ReadonlyArray<{
|
|
722
|
+
readonly uri: string;
|
|
723
|
+
readonly name?: string;
|
|
724
|
+
readonly description?: string;
|
|
725
|
+
readonly mention?: {
|
|
726
|
+
readonly start: number;
|
|
727
|
+
readonly end: number;
|
|
728
|
+
readonly text: string;
|
|
729
|
+
};
|
|
730
|
+
}>;
|
|
731
|
+
readonly agents?: ReadonlyArray<{
|
|
732
|
+
readonly name: string;
|
|
733
|
+
readonly mention?: {
|
|
734
|
+
readonly start: number;
|
|
735
|
+
readonly end: number;
|
|
736
|
+
readonly text: string;
|
|
737
|
+
};
|
|
738
|
+
}>;
|
|
739
|
+
readonly metadata?: {
|
|
740
|
+
readonly [x: string]: JsonValue;
|
|
741
|
+
};
|
|
742
|
+
readonly delivery?: "steer" | "queue" | null;
|
|
743
|
+
readonly resume?: boolean | null;
|
|
744
|
+
}["files"];
|
|
745
|
+
readonly agents?: {
|
|
746
|
+
readonly id?: string | null;
|
|
747
|
+
readonly text: string;
|
|
748
|
+
readonly files?: ReadonlyArray<{
|
|
749
|
+
readonly uri: string;
|
|
750
|
+
readonly name?: string;
|
|
751
|
+
readonly description?: string;
|
|
752
|
+
readonly mention?: {
|
|
753
|
+
readonly start: number;
|
|
754
|
+
readonly end: number;
|
|
755
|
+
readonly text: string;
|
|
756
|
+
};
|
|
757
|
+
}>;
|
|
758
|
+
readonly agents?: ReadonlyArray<{
|
|
759
|
+
readonly name: string;
|
|
760
|
+
readonly mention?: {
|
|
761
|
+
readonly start: number;
|
|
762
|
+
readonly end: number;
|
|
763
|
+
readonly text: string;
|
|
764
|
+
};
|
|
765
|
+
}>;
|
|
766
|
+
readonly metadata?: {
|
|
767
|
+
readonly [x: string]: JsonValue;
|
|
768
|
+
};
|
|
769
|
+
readonly delivery?: "steer" | "queue" | null;
|
|
770
|
+
readonly resume?: boolean | null;
|
|
771
|
+
}["agents"];
|
|
772
|
+
readonly metadata?: {
|
|
773
|
+
readonly id?: string | null;
|
|
774
|
+
readonly text: string;
|
|
775
|
+
readonly files?: ReadonlyArray<{
|
|
776
|
+
readonly uri: string;
|
|
777
|
+
readonly name?: string;
|
|
778
|
+
readonly description?: string;
|
|
779
|
+
readonly mention?: {
|
|
780
|
+
readonly start: number;
|
|
781
|
+
readonly end: number;
|
|
782
|
+
readonly text: string;
|
|
783
|
+
};
|
|
784
|
+
}>;
|
|
785
|
+
readonly agents?: ReadonlyArray<{
|
|
786
|
+
readonly name: string;
|
|
787
|
+
readonly mention?: {
|
|
788
|
+
readonly start: number;
|
|
789
|
+
readonly end: number;
|
|
790
|
+
readonly text: string;
|
|
791
|
+
};
|
|
792
|
+
}>;
|
|
793
|
+
readonly metadata?: {
|
|
794
|
+
readonly [x: string]: JsonValue;
|
|
795
|
+
};
|
|
796
|
+
readonly delivery?: "steer" | "queue" | null;
|
|
797
|
+
readonly resume?: boolean | null;
|
|
798
|
+
}["metadata"];
|
|
716
799
|
readonly delivery?: {
|
|
717
800
|
readonly id?: string | null;
|
|
718
|
-
readonly
|
|
719
|
-
|
|
720
|
-
readonly
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
readonly
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
readonly
|
|
731
|
-
|
|
732
|
-
readonly
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
801
|
+
readonly text: string;
|
|
802
|
+
readonly files?: ReadonlyArray<{
|
|
803
|
+
readonly uri: string;
|
|
804
|
+
readonly name?: string;
|
|
805
|
+
readonly description?: string;
|
|
806
|
+
readonly mention?: {
|
|
807
|
+
readonly start: number;
|
|
808
|
+
readonly end: number;
|
|
809
|
+
readonly text: string;
|
|
810
|
+
};
|
|
811
|
+
}>;
|
|
812
|
+
readonly agents?: ReadonlyArray<{
|
|
813
|
+
readonly name: string;
|
|
814
|
+
readonly mention?: {
|
|
815
|
+
readonly start: number;
|
|
816
|
+
readonly end: number;
|
|
817
|
+
readonly text: string;
|
|
818
|
+
};
|
|
819
|
+
}>;
|
|
820
|
+
readonly metadata?: {
|
|
821
|
+
readonly [x: string]: JsonValue;
|
|
738
822
|
};
|
|
739
823
|
readonly delivery?: "steer" | "queue" | null;
|
|
740
824
|
readonly resume?: boolean | null;
|
|
741
825
|
}["delivery"];
|
|
742
826
|
readonly resume?: {
|
|
743
827
|
readonly id?: string | null;
|
|
744
|
-
readonly
|
|
745
|
-
|
|
746
|
-
readonly
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
readonly
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
readonly
|
|
757
|
-
|
|
758
|
-
readonly
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
828
|
+
readonly text: string;
|
|
829
|
+
readonly files?: ReadonlyArray<{
|
|
830
|
+
readonly uri: string;
|
|
831
|
+
readonly name?: string;
|
|
832
|
+
readonly description?: string;
|
|
833
|
+
readonly mention?: {
|
|
834
|
+
readonly start: number;
|
|
835
|
+
readonly end: number;
|
|
836
|
+
readonly text: string;
|
|
837
|
+
};
|
|
838
|
+
}>;
|
|
839
|
+
readonly agents?: ReadonlyArray<{
|
|
840
|
+
readonly name: string;
|
|
841
|
+
readonly mention?: {
|
|
842
|
+
readonly start: number;
|
|
843
|
+
readonly end: number;
|
|
844
|
+
readonly text: string;
|
|
845
|
+
};
|
|
846
|
+
}>;
|
|
847
|
+
readonly metadata?: {
|
|
848
|
+
readonly [x: string]: JsonValue;
|
|
764
849
|
};
|
|
765
850
|
readonly delivery?: "steer" | "queue" | null;
|
|
766
851
|
readonly resume?: boolean | null;
|
|
@@ -771,7 +856,10 @@ export type SessionPromptOutput = {
|
|
|
771
856
|
readonly admittedSeq: number;
|
|
772
857
|
readonly id: string;
|
|
773
858
|
readonly sessionID: string;
|
|
774
|
-
readonly
|
|
859
|
+
readonly timeCreated: number;
|
|
860
|
+
readonly promotedSeq?: number;
|
|
861
|
+
readonly type: "user";
|
|
862
|
+
readonly data: {
|
|
775
863
|
readonly text: string;
|
|
776
864
|
readonly files?: ReadonlyArray<{
|
|
777
865
|
readonly data: string;
|
|
@@ -798,10 +886,11 @@ export type SessionPromptOutput = {
|
|
|
798
886
|
readonly text: string;
|
|
799
887
|
};
|
|
800
888
|
}>;
|
|
889
|
+
readonly metadata?: {
|
|
890
|
+
readonly [x: string]: JsonValue;
|
|
891
|
+
};
|
|
801
892
|
};
|
|
802
893
|
readonly delivery: "steer" | "queue";
|
|
803
|
-
readonly timeCreated: number;
|
|
804
|
-
readonly promotedSeq?: number;
|
|
805
894
|
};
|
|
806
895
|
}["data"];
|
|
807
896
|
export type SessionCommandInput = {
|
|
@@ -1093,7 +1182,10 @@ export type SessionCommandOutput = {
|
|
|
1093
1182
|
readonly admittedSeq: number;
|
|
1094
1183
|
readonly id: string;
|
|
1095
1184
|
readonly sessionID: string;
|
|
1096
|
-
readonly
|
|
1185
|
+
readonly timeCreated: number;
|
|
1186
|
+
readonly promotedSeq?: number;
|
|
1187
|
+
readonly type: "user";
|
|
1188
|
+
readonly data: {
|
|
1097
1189
|
readonly text: string;
|
|
1098
1190
|
readonly files?: ReadonlyArray<{
|
|
1099
1191
|
readonly data: string;
|
|
@@ -1120,10 +1212,11 @@ export type SessionCommandOutput = {
|
|
|
1120
1212
|
readonly text: string;
|
|
1121
1213
|
};
|
|
1122
1214
|
}>;
|
|
1215
|
+
readonly metadata?: {
|
|
1216
|
+
readonly [x: string]: JsonValue;
|
|
1217
|
+
};
|
|
1123
1218
|
};
|
|
1124
1219
|
readonly delivery: "steer" | "queue";
|
|
1125
|
-
readonly timeCreated: number;
|
|
1126
|
-
readonly promotedSeq?: number;
|
|
1127
1220
|
};
|
|
1128
1221
|
}["data"];
|
|
1129
1222
|
export type SessionSkillInput = {
|
|
@@ -1151,40 +1244,85 @@ export type SessionSyntheticInput = {
|
|
|
1151
1244
|
readonly sessionID: {
|
|
1152
1245
|
readonly sessionID: string;
|
|
1153
1246
|
}["sessionID"];
|
|
1247
|
+
readonly id?: {
|
|
1248
|
+
readonly id?: string | null;
|
|
1249
|
+
readonly text: string;
|
|
1250
|
+
readonly description?: string | null;
|
|
1251
|
+
readonly metadata?: {
|
|
1252
|
+
readonly [x: string]: JsonValue;
|
|
1253
|
+
};
|
|
1254
|
+
readonly delivery?: "steer" | "queue" | null;
|
|
1255
|
+
readonly resume?: boolean | null;
|
|
1256
|
+
}["id"];
|
|
1154
1257
|
readonly text: {
|
|
1258
|
+
readonly id?: string | null;
|
|
1155
1259
|
readonly text: string;
|
|
1156
1260
|
readonly description?: string | null;
|
|
1157
1261
|
readonly metadata?: {
|
|
1158
1262
|
readonly [x: string]: JsonValue;
|
|
1159
1263
|
};
|
|
1264
|
+
readonly delivery?: "steer" | "queue" | null;
|
|
1160
1265
|
readonly resume?: boolean | null;
|
|
1161
1266
|
}["text"];
|
|
1162
1267
|
readonly description?: {
|
|
1268
|
+
readonly id?: string | null;
|
|
1163
1269
|
readonly text: string;
|
|
1164
1270
|
readonly description?: string | null;
|
|
1165
1271
|
readonly metadata?: {
|
|
1166
1272
|
readonly [x: string]: JsonValue;
|
|
1167
1273
|
};
|
|
1274
|
+
readonly delivery?: "steer" | "queue" | null;
|
|
1168
1275
|
readonly resume?: boolean | null;
|
|
1169
1276
|
}["description"];
|
|
1170
1277
|
readonly metadata?: {
|
|
1278
|
+
readonly id?: string | null;
|
|
1171
1279
|
readonly text: string;
|
|
1172
1280
|
readonly description?: string | null;
|
|
1173
1281
|
readonly metadata?: {
|
|
1174
1282
|
readonly [x: string]: JsonValue;
|
|
1175
1283
|
};
|
|
1284
|
+
readonly delivery?: "steer" | "queue" | null;
|
|
1176
1285
|
readonly resume?: boolean | null;
|
|
1177
1286
|
}["metadata"];
|
|
1287
|
+
readonly delivery?: {
|
|
1288
|
+
readonly id?: string | null;
|
|
1289
|
+
readonly text: string;
|
|
1290
|
+
readonly description?: string | null;
|
|
1291
|
+
readonly metadata?: {
|
|
1292
|
+
readonly [x: string]: JsonValue;
|
|
1293
|
+
};
|
|
1294
|
+
readonly delivery?: "steer" | "queue" | null;
|
|
1295
|
+
readonly resume?: boolean | null;
|
|
1296
|
+
}["delivery"];
|
|
1178
1297
|
readonly resume?: {
|
|
1298
|
+
readonly id?: string | null;
|
|
1179
1299
|
readonly text: string;
|
|
1180
1300
|
readonly description?: string | null;
|
|
1181
1301
|
readonly metadata?: {
|
|
1182
1302
|
readonly [x: string]: JsonValue;
|
|
1183
1303
|
};
|
|
1304
|
+
readonly delivery?: "steer" | "queue" | null;
|
|
1184
1305
|
readonly resume?: boolean | null;
|
|
1185
1306
|
}["resume"];
|
|
1186
1307
|
};
|
|
1187
|
-
export type SessionSyntheticOutput =
|
|
1308
|
+
export type SessionSyntheticOutput = {
|
|
1309
|
+
readonly data: {
|
|
1310
|
+
readonly admittedSeq: number;
|
|
1311
|
+
readonly id: string;
|
|
1312
|
+
readonly sessionID: string;
|
|
1313
|
+
readonly timeCreated: number;
|
|
1314
|
+
readonly promotedSeq?: number;
|
|
1315
|
+
readonly type: "synthetic";
|
|
1316
|
+
readonly data: {
|
|
1317
|
+
readonly text: string;
|
|
1318
|
+
readonly description?: string;
|
|
1319
|
+
readonly metadata?: {
|
|
1320
|
+
readonly [x: string]: JsonValue;
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
readonly delivery: "steer" | "queue";
|
|
1324
|
+
};
|
|
1325
|
+
}["data"];
|
|
1188
1326
|
export type SessionShellInput = {
|
|
1189
1327
|
readonly sessionID: {
|
|
1190
1328
|
readonly sessionID: string;
|
|
@@ -1209,11 +1347,11 @@ export type SessionCompactInput = {
|
|
|
1209
1347
|
};
|
|
1210
1348
|
export type SessionCompactOutput = {
|
|
1211
1349
|
readonly data: {
|
|
1212
|
-
readonly type: "compaction";
|
|
1213
1350
|
readonly admittedSeq: number;
|
|
1214
1351
|
readonly id: string;
|
|
1215
1352
|
readonly sessionID: string;
|
|
1216
1353
|
readonly timeCreated: number;
|
|
1354
|
+
readonly type: "compaction";
|
|
1217
1355
|
readonly handledSeq?: number;
|
|
1218
1356
|
};
|
|
1219
1357
|
}["data"];
|
|
@@ -1746,7 +1884,7 @@ export type SessionLogOutput = ({
|
|
|
1746
1884
|
readonly metadata?: {
|
|
1747
1885
|
readonly [x: string]: unknown;
|
|
1748
1886
|
};
|
|
1749
|
-
readonly type: "session.
|
|
1887
|
+
readonly type: "session.input.promoted";
|
|
1750
1888
|
readonly durable: {
|
|
1751
1889
|
readonly aggregateID: string;
|
|
1752
1890
|
readonly seq: number;
|
|
@@ -1766,7 +1904,7 @@ export type SessionLogOutput = ({
|
|
|
1766
1904
|
readonly metadata?: {
|
|
1767
1905
|
readonly [x: string]: unknown;
|
|
1768
1906
|
};
|
|
1769
|
-
readonly type: "session.
|
|
1907
|
+
readonly type: "session.input.admitted";
|
|
1770
1908
|
readonly durable: {
|
|
1771
1909
|
readonly aggregateID: string;
|
|
1772
1910
|
readonly seq: number;
|
|
@@ -1779,35 +1917,51 @@ export type SessionLogOutput = ({
|
|
|
1779
1917
|
readonly data: {
|
|
1780
1918
|
readonly sessionID: string;
|
|
1781
1919
|
readonly inputID: string;
|
|
1782
|
-
readonly
|
|
1783
|
-
readonly
|
|
1784
|
-
readonly
|
|
1785
|
-
readonly
|
|
1786
|
-
readonly
|
|
1787
|
-
|
|
1788
|
-
readonly
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1920
|
+
readonly input: {
|
|
1921
|
+
readonly type: "user";
|
|
1922
|
+
readonly data: {
|
|
1923
|
+
readonly text: string;
|
|
1924
|
+
readonly files?: ReadonlyArray<{
|
|
1925
|
+
readonly data: string;
|
|
1926
|
+
readonly mime: string;
|
|
1927
|
+
readonly source: {
|
|
1928
|
+
readonly type: "inline";
|
|
1929
|
+
} | {
|
|
1930
|
+
readonly type: "uri";
|
|
1931
|
+
readonly uri: string;
|
|
1932
|
+
};
|
|
1933
|
+
readonly name?: string;
|
|
1934
|
+
readonly description?: string;
|
|
1935
|
+
readonly mention?: {
|
|
1936
|
+
readonly start: number;
|
|
1937
|
+
readonly end: number;
|
|
1938
|
+
readonly text: string;
|
|
1939
|
+
};
|
|
1940
|
+
}>;
|
|
1941
|
+
readonly agents?: ReadonlyArray<{
|
|
1942
|
+
readonly name: string;
|
|
1943
|
+
readonly mention?: {
|
|
1944
|
+
readonly start: number;
|
|
1945
|
+
readonly end: number;
|
|
1946
|
+
readonly text: string;
|
|
1947
|
+
};
|
|
1948
|
+
}>;
|
|
1949
|
+
readonly metadata?: {
|
|
1950
|
+
readonly [x: string]: unknown;
|
|
1792
1951
|
};
|
|
1793
|
-
|
|
1952
|
+
};
|
|
1953
|
+
readonly delivery: "steer" | "queue";
|
|
1954
|
+
} | {
|
|
1955
|
+
readonly type: "synthetic";
|
|
1956
|
+
readonly data: {
|
|
1957
|
+
readonly text: string;
|
|
1794
1958
|
readonly description?: string;
|
|
1795
|
-
readonly
|
|
1796
|
-
readonly
|
|
1797
|
-
readonly end: number;
|
|
1798
|
-
readonly text: string;
|
|
1799
|
-
};
|
|
1800
|
-
}>;
|
|
1801
|
-
readonly agents?: ReadonlyArray<{
|
|
1802
|
-
readonly name: string;
|
|
1803
|
-
readonly mention?: {
|
|
1804
|
-
readonly start: number;
|
|
1805
|
-
readonly end: number;
|
|
1806
|
-
readonly text: string;
|
|
1959
|
+
readonly metadata?: {
|
|
1960
|
+
readonly [x: string]: unknown;
|
|
1807
1961
|
};
|
|
1808
|
-
}
|
|
1962
|
+
};
|
|
1963
|
+
readonly delivery: "steer" | "queue";
|
|
1809
1964
|
};
|
|
1810
|
-
readonly delivery: "steer" | "queue";
|
|
1811
1965
|
};
|
|
1812
1966
|
} | {
|
|
1813
1967
|
readonly id: string;
|
|
@@ -6276,7 +6430,7 @@ export type EventSubscribeOutput = {
|
|
|
6276
6430
|
readonly metadata?: {
|
|
6277
6431
|
readonly [x: string]: unknown;
|
|
6278
6432
|
};
|
|
6279
|
-
readonly type: "session.
|
|
6433
|
+
readonly type: "session.input.promoted";
|
|
6280
6434
|
readonly durable: {
|
|
6281
6435
|
readonly aggregateID: string;
|
|
6282
6436
|
readonly seq: number;
|
|
@@ -6296,7 +6450,7 @@ export type EventSubscribeOutput = {
|
|
|
6296
6450
|
readonly metadata?: {
|
|
6297
6451
|
readonly [x: string]: unknown;
|
|
6298
6452
|
};
|
|
6299
|
-
readonly type: "session.
|
|
6453
|
+
readonly type: "session.input.admitted";
|
|
6300
6454
|
readonly durable: {
|
|
6301
6455
|
readonly aggregateID: string;
|
|
6302
6456
|
readonly seq: number;
|
|
@@ -6309,35 +6463,51 @@ export type EventSubscribeOutput = {
|
|
|
6309
6463
|
readonly data: {
|
|
6310
6464
|
readonly sessionID: string;
|
|
6311
6465
|
readonly inputID: string;
|
|
6312
|
-
readonly
|
|
6313
|
-
readonly
|
|
6314
|
-
readonly
|
|
6315
|
-
readonly
|
|
6316
|
-
readonly
|
|
6317
|
-
|
|
6318
|
-
readonly
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6466
|
+
readonly input: {
|
|
6467
|
+
readonly type: "user";
|
|
6468
|
+
readonly data: {
|
|
6469
|
+
readonly text: string;
|
|
6470
|
+
readonly files?: ReadonlyArray<{
|
|
6471
|
+
readonly data: string;
|
|
6472
|
+
readonly mime: string;
|
|
6473
|
+
readonly source: {
|
|
6474
|
+
readonly type: "inline";
|
|
6475
|
+
} | {
|
|
6476
|
+
readonly type: "uri";
|
|
6477
|
+
readonly uri: string;
|
|
6478
|
+
};
|
|
6479
|
+
readonly name?: string;
|
|
6480
|
+
readonly description?: string;
|
|
6481
|
+
readonly mention?: {
|
|
6482
|
+
readonly start: number;
|
|
6483
|
+
readonly end: number;
|
|
6484
|
+
readonly text: string;
|
|
6485
|
+
};
|
|
6486
|
+
}>;
|
|
6487
|
+
readonly agents?: ReadonlyArray<{
|
|
6488
|
+
readonly name: string;
|
|
6489
|
+
readonly mention?: {
|
|
6490
|
+
readonly start: number;
|
|
6491
|
+
readonly end: number;
|
|
6492
|
+
readonly text: string;
|
|
6493
|
+
};
|
|
6494
|
+
}>;
|
|
6495
|
+
readonly metadata?: {
|
|
6496
|
+
readonly [x: string]: unknown;
|
|
6322
6497
|
};
|
|
6323
|
-
|
|
6498
|
+
};
|
|
6499
|
+
readonly delivery: "steer" | "queue";
|
|
6500
|
+
} | {
|
|
6501
|
+
readonly type: "synthetic";
|
|
6502
|
+
readonly data: {
|
|
6503
|
+
readonly text: string;
|
|
6324
6504
|
readonly description?: string;
|
|
6325
|
-
readonly
|
|
6326
|
-
readonly
|
|
6327
|
-
readonly end: number;
|
|
6328
|
-
readonly text: string;
|
|
6329
|
-
};
|
|
6330
|
-
}>;
|
|
6331
|
-
readonly agents?: ReadonlyArray<{
|
|
6332
|
-
readonly name: string;
|
|
6333
|
-
readonly mention?: {
|
|
6334
|
-
readonly start: number;
|
|
6335
|
-
readonly end: number;
|
|
6336
|
-
readonly text: string;
|
|
6505
|
+
readonly metadata?: {
|
|
6506
|
+
readonly [x: string]: unknown;
|
|
6337
6507
|
};
|
|
6338
|
-
}
|
|
6508
|
+
};
|
|
6509
|
+
readonly delivery: "steer" | "queue";
|
|
6339
6510
|
};
|
|
6340
|
-
readonly delivery: "steer" | "queue";
|
|
6341
6511
|
};
|
|
6342
6512
|
} | {
|
|
6343
6513
|
readonly id: 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-15180",
|
|
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-15180",
|
|
45
|
+
"@opencode-ai/protocol": "0.0.0-next-15180"
|
|
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-15180",
|
|
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",
|