effect-durable-agent-cloudflare 0.1.0-alpha.26 → 0.1.0-alpha.27
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/{durable-object-CkrxIOH4.js → durable-object-95R1iqF6.js} +4 -12
- package/dist/durable-object-95R1iqF6.js.map +1 -0
- package/dist/{durable-object-storage-BVsu5oAV.d.ts → durable-object-storage-Dec6HWQ9.d.ts} +3 -2
- package/dist/{durable-object-store-Ca0pvpa_.js → durable-object-store-yY_KaFtw.js} +2 -2
- package/dist/durable-object-store-yY_KaFtw.js.map +1 -0
- package/dist/durable-object.d.ts +3 -521
- package/dist/durable-object.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/{rpc-spec-BupIkBhI.js → rpc-spec-BRNFIsY1.js} +5 -9
- package/dist/rpc-spec-BRNFIsY1.js.map +1 -0
- package/dist/{rpc-spec-CwehaLCd.d.ts → rpc-spec-DC1H-YCH.d.ts} +1 -376
- package/dist/rpc.d.ts +1 -1
- package/dist/rpc.js +1 -1
- package/dist/{session-controller-KWMuKhlX.js → session-controller-CK5jY_Xp.js} +2 -5
- package/dist/{session-controller-KWMuKhlX.js.map → session-controller-CK5jY_Xp.js.map} +1 -1
- package/dist/{session-controller-D0PxLJJ9.d.ts → session-controller-CfhK1bUF.d.ts} +2 -4
- package/dist/session-controller.d.ts +1 -1
- package/dist/session-controller.js +1 -1
- package/dist/storage.d.ts +1 -1
- package/package.json +2 -2
- package/dist/durable-object-CkrxIOH4.js.map +0 -1
- package/dist/durable-object-store-Ca0pvpa_.js.map +0 -1
- package/dist/rpc-spec-BupIkBhI.js.map +0 -1
package/dist/durable-object.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as DurableObjectTranscriptObserver, c as TranscriptAlert, s as DurableObjectTranscriptSliceLimits } from "./durable-object-storage-
|
|
2
|
-
import { a as SessionOutcomeInput, d as SessionTranscriptWindowInput, i as SessionGrantRunInput, l as SessionTranscriptSummaryInput, m as edaSessionRpc, n as SessionBlockInput, o as SessionScopedInput, r as SessionCommandInput, s as SessionTranscriptBodyInput, t as SessionBatchInput } from "./rpc-spec-
|
|
3
|
-
import { d as EDAWebSocketProjection, i as EDASessionControllerOptions, l as EDATranscriptSocketOptions } from "./session-controller-
|
|
1
|
+
import { a as DurableObjectTranscriptObserver, c as TranscriptAlert, s as DurableObjectTranscriptSliceLimits } from "./durable-object-storage-Dec6HWQ9.js";
|
|
2
|
+
import { a as SessionOutcomeInput, d as SessionTranscriptWindowInput, i as SessionGrantRunInput, l as SessionTranscriptSummaryInput, m as edaSessionRpc, n as SessionBlockInput, o as SessionScopedInput, r as SessionCommandInput, s as SessionTranscriptBodyInput, t as SessionBatchInput } from "./rpc-spec-DC1H-YCH.js";
|
|
3
|
+
import { d as EDAWebSocketProjection, i as EDASessionControllerOptions, l as EDATranscriptSocketOptions } from "./session-controller-CfhK1bUF.js";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
5
5
|
import { SessionId } from "effect-durable-agent/types/core";
|
|
6
6
|
import { CommittedDurableEvent } from "effect-durable-agent/services/session-store";
|
|
@@ -34,7 +34,6 @@ interface EDASessionRpcSurface {
|
|
|
34
34
|
readonly submitAndBlock: (input: EDASessionCommandRpcInput) => Promise<typeof edaSessionRpc.submitAndBlock.output.Encoded>;
|
|
35
35
|
readonly blockOnCommand: (input: EDASessionBlockOnCommandRpcInput) => Promise<typeof edaSessionRpc.blockOnCommand.output.Encoded>;
|
|
36
36
|
readonly snapshot: (input: EDASessionScopedRpcInput) => Promise<typeof edaSessionRpc.snapshot.output.Encoded>;
|
|
37
|
-
readonly messages: (input: EDASessionScopedRpcInput) => Promise<typeof edaSessionRpc.messages.output.Encoded>;
|
|
38
37
|
readonly destroySession: (input: EDASessionScopedRpcInput) => Promise<typeof edaSessionRpc.destroySession.output.Encoded>;
|
|
39
38
|
readonly transcriptStatus: (input: EDASessionScopedRpcInput) => Promise<typeof edaSessionRpc.transcriptStatus.output.Encoded>;
|
|
40
39
|
readonly readTranscriptWindow: (input: typeof SessionTranscriptWindowInput.Encoded) => Promise<typeof edaSessionRpc.readTranscriptWindow.output.Encoded>;
|
|
@@ -110,7 +109,6 @@ declare abstract class EDASessionDurableObject<EnvType extends object = object,
|
|
|
110
109
|
submitAndBlock(raw: typeof SessionCommandInput.Encoded): Promise<typeof edaSessionRpc.submitAndBlock.output.Encoded>;
|
|
111
110
|
blockOnCommand(raw: typeof SessionBlockInput.Encoded): Promise<typeof edaSessionRpc.blockOnCommand.output.Encoded>;
|
|
112
111
|
snapshot(raw: typeof SessionScopedInput.Encoded): Promise<typeof edaSessionRpc.snapshot.output.Encoded>;
|
|
113
|
-
messages(raw: typeof SessionScopedInput.Encoded): Promise<typeof edaSessionRpc.messages.output.Encoded>;
|
|
114
112
|
webSocketMessage(webSocket: WebSocket, message: string | ArrayBuffer): Promise<void>;
|
|
115
113
|
webSocketClose(webSocket: WebSocket, _code: number, _reason: string, _wasClean: boolean): Promise<void>;
|
|
116
114
|
webSocketError(webSocket: WebSocket, _error: unknown): Promise<void>;
|
|
@@ -1047,264 +1045,6 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
|
|
|
1047
1045
|
};
|
|
1048
1046
|
};
|
|
1049
1047
|
readonly reducerStates: ReadonlyMap<string, unknown>;
|
|
1050
|
-
readonly messages: readonly ({
|
|
1051
|
-
readonly createdAtMs?: number | undefined;
|
|
1052
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1053
|
-
readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
|
|
1054
|
-
readonly cancellationReason?: string | undefined;
|
|
1055
|
-
readonly cancelledByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
|
|
1056
|
-
readonly cancelledSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
|
|
1057
|
-
readonly consumedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
|
|
1058
|
-
readonly consumedTurnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
|
|
1059
|
-
readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
|
|
1060
|
-
readonly pausedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
|
|
1061
|
-
readonly promotedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
|
|
1062
|
-
readonly _tag: "User";
|
|
1063
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
1064
|
-
readonly content: readonly [{
|
|
1065
|
-
readonly type: "text";
|
|
1066
|
-
readonly text: string;
|
|
1067
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1068
|
-
readonly options: {
|
|
1069
|
-
readonly [x: string]: Schema.Json;
|
|
1070
|
-
};
|
|
1071
|
-
}, ...{
|
|
1072
|
-
readonly type: "text";
|
|
1073
|
-
readonly text: string;
|
|
1074
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1075
|
-
readonly options: {
|
|
1076
|
-
readonly [x: string]: Schema.Json;
|
|
1077
|
-
};
|
|
1078
|
-
}[]] | readonly [{
|
|
1079
|
-
readonly type: "text";
|
|
1080
|
-
readonly text: string;
|
|
1081
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1082
|
-
readonly options: {
|
|
1083
|
-
readonly [x: string]: Schema.Json;
|
|
1084
|
-
};
|
|
1085
|
-
} | {
|
|
1086
|
-
readonly type: "file";
|
|
1087
|
-
readonly mediaType: string;
|
|
1088
|
-
readonly fileName?: string | undefined;
|
|
1089
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
1090
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1091
|
-
readonly options: {
|
|
1092
|
-
readonly [x: string]: Schema.Json;
|
|
1093
|
-
};
|
|
1094
|
-
}, ...({
|
|
1095
|
-
readonly type: "text";
|
|
1096
|
-
readonly text: string;
|
|
1097
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1098
|
-
readonly options: {
|
|
1099
|
-
readonly [x: string]: Schema.Json;
|
|
1100
|
-
};
|
|
1101
|
-
} | {
|
|
1102
|
-
readonly type: "file";
|
|
1103
|
-
readonly mediaType: string;
|
|
1104
|
-
readonly fileName?: string | undefined;
|
|
1105
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
1106
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1107
|
-
readonly options: {
|
|
1108
|
-
readonly [x: string]: Schema.Json;
|
|
1109
|
-
};
|
|
1110
|
-
})[]];
|
|
1111
|
-
readonly disposition?: "queue" | "steer" | undefined;
|
|
1112
|
-
readonly requestedDisposition?: "queue" | "steer" | undefined;
|
|
1113
|
-
} | {
|
|
1114
|
-
readonly createdAtMs?: number | undefined;
|
|
1115
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1116
|
-
readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
|
|
1117
|
-
readonly _tag: "Assistant";
|
|
1118
|
-
readonly content: {
|
|
1119
|
-
readonly text: string;
|
|
1120
|
-
readonly reasoning?: string | undefined;
|
|
1121
|
-
};
|
|
1122
|
-
readonly imported?: true | undefined;
|
|
1123
|
-
readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
|
|
1124
|
-
readonly promptParts?: readonly ({
|
|
1125
|
-
readonly type: "text";
|
|
1126
|
-
readonly text: string;
|
|
1127
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1128
|
-
readonly options: {
|
|
1129
|
-
readonly [x: string]: Schema.Json;
|
|
1130
|
-
};
|
|
1131
|
-
} | {
|
|
1132
|
-
readonly type: "file";
|
|
1133
|
-
readonly mediaType: string;
|
|
1134
|
-
readonly fileName?: string | undefined;
|
|
1135
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
1136
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1137
|
-
readonly options: {
|
|
1138
|
-
readonly [x: string]: Schema.Json;
|
|
1139
|
-
};
|
|
1140
|
-
} | {
|
|
1141
|
-
readonly type: "reasoning";
|
|
1142
|
-
readonly text: string;
|
|
1143
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1144
|
-
readonly options: {
|
|
1145
|
-
readonly [x: string]: Schema.Json;
|
|
1146
|
-
};
|
|
1147
|
-
} | {
|
|
1148
|
-
readonly type: "tool-call";
|
|
1149
|
-
readonly id: string;
|
|
1150
|
-
readonly name: string;
|
|
1151
|
-
readonly params: unknown;
|
|
1152
|
-
readonly providerExecuted: boolean;
|
|
1153
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1154
|
-
readonly options: {
|
|
1155
|
-
readonly [x: string]: Schema.Json;
|
|
1156
|
-
};
|
|
1157
|
-
} | {
|
|
1158
|
-
readonly type: "tool-result";
|
|
1159
|
-
readonly id: string;
|
|
1160
|
-
readonly name: string;
|
|
1161
|
-
readonly isFailure: boolean;
|
|
1162
|
-
readonly result: unknown;
|
|
1163
|
-
readonly providerExecuted: boolean;
|
|
1164
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1165
|
-
readonly options: {
|
|
1166
|
-
readonly [x: string]: Schema.Json;
|
|
1167
|
-
};
|
|
1168
|
-
} | {
|
|
1169
|
-
readonly type: "tool-approval-request";
|
|
1170
|
-
readonly approvalId: string;
|
|
1171
|
-
readonly toolCallId: string;
|
|
1172
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1173
|
-
readonly options: {
|
|
1174
|
-
readonly [x: string]: Schema.Json;
|
|
1175
|
-
};
|
|
1176
|
-
})[] | undefined;
|
|
1177
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
1178
|
-
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
1179
|
-
} | {
|
|
1180
|
-
readonly createdAtMs?: number | undefined;
|
|
1181
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1182
|
-
readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
|
|
1183
|
-
readonly _tag: "AssistantPartial";
|
|
1184
|
-
readonly content: {
|
|
1185
|
-
readonly text: string;
|
|
1186
|
-
readonly reasoning?: string | undefined;
|
|
1187
|
-
};
|
|
1188
|
-
readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
|
|
1189
|
-
readonly promptParts?: readonly ({
|
|
1190
|
-
readonly type: "text";
|
|
1191
|
-
readonly text: string;
|
|
1192
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1193
|
-
readonly options: {
|
|
1194
|
-
readonly [x: string]: Schema.Json;
|
|
1195
|
-
};
|
|
1196
|
-
} | {
|
|
1197
|
-
readonly type: "file";
|
|
1198
|
-
readonly mediaType: string;
|
|
1199
|
-
readonly fileName?: string | undefined;
|
|
1200
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
1201
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1202
|
-
readonly options: {
|
|
1203
|
-
readonly [x: string]: Schema.Json;
|
|
1204
|
-
};
|
|
1205
|
-
} | {
|
|
1206
|
-
readonly type: "reasoning";
|
|
1207
|
-
readonly text: string;
|
|
1208
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1209
|
-
readonly options: {
|
|
1210
|
-
readonly [x: string]: Schema.Json;
|
|
1211
|
-
};
|
|
1212
|
-
} | {
|
|
1213
|
-
readonly type: "tool-call";
|
|
1214
|
-
readonly id: string;
|
|
1215
|
-
readonly name: string;
|
|
1216
|
-
readonly params: unknown;
|
|
1217
|
-
readonly providerExecuted: boolean;
|
|
1218
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1219
|
-
readonly options: {
|
|
1220
|
-
readonly [x: string]: Schema.Json;
|
|
1221
|
-
};
|
|
1222
|
-
} | {
|
|
1223
|
-
readonly type: "tool-result";
|
|
1224
|
-
readonly id: string;
|
|
1225
|
-
readonly name: string;
|
|
1226
|
-
readonly isFailure: boolean;
|
|
1227
|
-
readonly result: unknown;
|
|
1228
|
-
readonly providerExecuted: boolean;
|
|
1229
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1230
|
-
readonly options: {
|
|
1231
|
-
readonly [x: string]: Schema.Json;
|
|
1232
|
-
};
|
|
1233
|
-
} | {
|
|
1234
|
-
readonly type: "tool-approval-request";
|
|
1235
|
-
readonly approvalId: string;
|
|
1236
|
-
readonly toolCallId: string;
|
|
1237
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1238
|
-
readonly options: {
|
|
1239
|
-
readonly [x: string]: Schema.Json;
|
|
1240
|
-
};
|
|
1241
|
-
})[] | undefined;
|
|
1242
|
-
readonly reason: string;
|
|
1243
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
1244
|
-
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
1245
|
-
} | {
|
|
1246
|
-
readonly createdAtMs?: number | undefined;
|
|
1247
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1248
|
-
readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
|
|
1249
|
-
readonly cancellationReason?: string | undefined;
|
|
1250
|
-
readonly cancelledByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
|
|
1251
|
-
readonly cancelledSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
|
|
1252
|
-
readonly consumedTurnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
|
|
1253
|
-
readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
|
|
1254
|
-
readonly pausedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
|
|
1255
|
-
readonly promotedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
|
|
1256
|
-
readonly _tag: "Steering";
|
|
1257
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
1258
|
-
readonly content: readonly [{
|
|
1259
|
-
readonly type: "text";
|
|
1260
|
-
readonly text: string;
|
|
1261
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1262
|
-
readonly options: {
|
|
1263
|
-
readonly [x: string]: Schema.Json;
|
|
1264
|
-
};
|
|
1265
|
-
}, ...{
|
|
1266
|
-
readonly type: "text";
|
|
1267
|
-
readonly text: string;
|
|
1268
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1269
|
-
readonly options: {
|
|
1270
|
-
readonly [x: string]: Schema.Json;
|
|
1271
|
-
};
|
|
1272
|
-
}[]] | readonly [{
|
|
1273
|
-
readonly type: "text";
|
|
1274
|
-
readonly text: string;
|
|
1275
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1276
|
-
readonly options: {
|
|
1277
|
-
readonly [x: string]: Schema.Json;
|
|
1278
|
-
};
|
|
1279
|
-
} | {
|
|
1280
|
-
readonly type: "file";
|
|
1281
|
-
readonly mediaType: string;
|
|
1282
|
-
readonly fileName?: string | undefined;
|
|
1283
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
1284
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1285
|
-
readonly options: {
|
|
1286
|
-
readonly [x: string]: Schema.Json;
|
|
1287
|
-
};
|
|
1288
|
-
}, ...({
|
|
1289
|
-
readonly type: "text";
|
|
1290
|
-
readonly text: string;
|
|
1291
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1292
|
-
readonly options: {
|
|
1293
|
-
readonly [x: string]: Schema.Json;
|
|
1294
|
-
};
|
|
1295
|
-
} | {
|
|
1296
|
-
readonly type: "file";
|
|
1297
|
-
readonly mediaType: string;
|
|
1298
|
-
readonly fileName?: string | undefined;
|
|
1299
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
1300
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
1301
|
-
readonly options: {
|
|
1302
|
-
readonly [x: string]: Schema.Json;
|
|
1303
|
-
};
|
|
1304
|
-
})[]];
|
|
1305
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
1306
|
-
readonly consumedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
|
|
1307
|
-
})[];
|
|
1308
1048
|
}, options?: import("effect/SchemaAST").ParseOptions) => {
|
|
1309
1049
|
readonly state: {
|
|
1310
1050
|
readonly runSchedulingRequest?: {
|
|
@@ -2425,264 +2165,6 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
|
|
|
2425
2165
|
};
|
|
2426
2166
|
};
|
|
2427
2167
|
readonly reducerStates: ReadonlyMap<string, unknown>;
|
|
2428
|
-
readonly messages: readonly ({
|
|
2429
|
-
readonly createdAtMs?: number | undefined;
|
|
2430
|
-
readonly messageId: string;
|
|
2431
|
-
readonly seq: number;
|
|
2432
|
-
readonly cancellationReason?: string | undefined;
|
|
2433
|
-
readonly cancelledByCommandId?: string | undefined;
|
|
2434
|
-
readonly cancelledSeq?: number | undefined;
|
|
2435
|
-
readonly consumedSeq?: number | undefined;
|
|
2436
|
-
readonly consumedTurnId?: string | undefined;
|
|
2437
|
-
readonly pausedByCommandId?: string | undefined;
|
|
2438
|
-
readonly pausedSeq?: number | undefined;
|
|
2439
|
-
readonly promotedSeq?: number | undefined;
|
|
2440
|
-
readonly _tag: "User";
|
|
2441
|
-
readonly commandId: string;
|
|
2442
|
-
readonly content: readonly [{
|
|
2443
|
-
readonly type: "text";
|
|
2444
|
-
readonly text: string;
|
|
2445
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2446
|
-
readonly options: {
|
|
2447
|
-
readonly [x: string]: Schema.Json;
|
|
2448
|
-
};
|
|
2449
|
-
}, ...{
|
|
2450
|
-
readonly type: "text";
|
|
2451
|
-
readonly text: string;
|
|
2452
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2453
|
-
readonly options: {
|
|
2454
|
-
readonly [x: string]: Schema.Json;
|
|
2455
|
-
};
|
|
2456
|
-
}[]] | readonly [{
|
|
2457
|
-
readonly type: "text";
|
|
2458
|
-
readonly text: string;
|
|
2459
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2460
|
-
readonly options: {
|
|
2461
|
-
readonly [x: string]: Schema.Json;
|
|
2462
|
-
};
|
|
2463
|
-
} | {
|
|
2464
|
-
readonly type: "file";
|
|
2465
|
-
readonly mediaType: string;
|
|
2466
|
-
readonly fileName?: string | undefined;
|
|
2467
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
2468
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2469
|
-
readonly options: {
|
|
2470
|
-
readonly [x: string]: Schema.Json;
|
|
2471
|
-
};
|
|
2472
|
-
}, ...({
|
|
2473
|
-
readonly type: "text";
|
|
2474
|
-
readonly text: string;
|
|
2475
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2476
|
-
readonly options: {
|
|
2477
|
-
readonly [x: string]: Schema.Json;
|
|
2478
|
-
};
|
|
2479
|
-
} | {
|
|
2480
|
-
readonly type: "file";
|
|
2481
|
-
readonly mediaType: string;
|
|
2482
|
-
readonly fileName?: string | undefined;
|
|
2483
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
2484
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2485
|
-
readonly options: {
|
|
2486
|
-
readonly [x: string]: Schema.Json;
|
|
2487
|
-
};
|
|
2488
|
-
})[]];
|
|
2489
|
-
readonly disposition?: "queue" | "steer" | undefined;
|
|
2490
|
-
readonly requestedDisposition?: "queue" | "steer" | undefined;
|
|
2491
|
-
} | {
|
|
2492
|
-
readonly createdAtMs?: number | undefined;
|
|
2493
|
-
readonly messageId: string;
|
|
2494
|
-
readonly seq: number;
|
|
2495
|
-
readonly _tag: "Assistant";
|
|
2496
|
-
readonly content: {
|
|
2497
|
-
readonly text: string;
|
|
2498
|
-
readonly reasoning?: string | undefined;
|
|
2499
|
-
};
|
|
2500
|
-
readonly imported?: true | undefined;
|
|
2501
|
-
readonly inferenceId: string;
|
|
2502
|
-
readonly promptParts?: readonly ({
|
|
2503
|
-
readonly type: "text";
|
|
2504
|
-
readonly text: string;
|
|
2505
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2506
|
-
readonly options: {
|
|
2507
|
-
readonly [x: string]: Schema.Json;
|
|
2508
|
-
};
|
|
2509
|
-
} | {
|
|
2510
|
-
readonly type: "file";
|
|
2511
|
-
readonly mediaType: string;
|
|
2512
|
-
readonly fileName?: string | undefined;
|
|
2513
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
2514
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2515
|
-
readonly options: {
|
|
2516
|
-
readonly [x: string]: Schema.Json;
|
|
2517
|
-
};
|
|
2518
|
-
} | {
|
|
2519
|
-
readonly type: "reasoning";
|
|
2520
|
-
readonly text: string;
|
|
2521
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2522
|
-
readonly options: {
|
|
2523
|
-
readonly [x: string]: Schema.Json;
|
|
2524
|
-
};
|
|
2525
|
-
} | {
|
|
2526
|
-
readonly type: "tool-call";
|
|
2527
|
-
readonly id: string;
|
|
2528
|
-
readonly name: string;
|
|
2529
|
-
readonly params: unknown;
|
|
2530
|
-
readonly providerExecuted: boolean;
|
|
2531
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2532
|
-
readonly options: {
|
|
2533
|
-
readonly [x: string]: Schema.Json;
|
|
2534
|
-
};
|
|
2535
|
-
} | {
|
|
2536
|
-
readonly type: "tool-result";
|
|
2537
|
-
readonly id: string;
|
|
2538
|
-
readonly name: string;
|
|
2539
|
-
readonly isFailure: boolean;
|
|
2540
|
-
readonly result: unknown;
|
|
2541
|
-
readonly providerExecuted: boolean;
|
|
2542
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2543
|
-
readonly options: {
|
|
2544
|
-
readonly [x: string]: Schema.Json;
|
|
2545
|
-
};
|
|
2546
|
-
} | {
|
|
2547
|
-
readonly type: "tool-approval-request";
|
|
2548
|
-
readonly approvalId: string;
|
|
2549
|
-
readonly toolCallId: string;
|
|
2550
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2551
|
-
readonly options: {
|
|
2552
|
-
readonly [x: string]: Schema.Json;
|
|
2553
|
-
};
|
|
2554
|
-
})[] | undefined;
|
|
2555
|
-
readonly runId: string;
|
|
2556
|
-
readonly turnId: string;
|
|
2557
|
-
} | {
|
|
2558
|
-
readonly createdAtMs?: number | undefined;
|
|
2559
|
-
readonly messageId: string;
|
|
2560
|
-
readonly seq: number;
|
|
2561
|
-
readonly _tag: "AssistantPartial";
|
|
2562
|
-
readonly content: {
|
|
2563
|
-
readonly text: string;
|
|
2564
|
-
readonly reasoning?: string | undefined;
|
|
2565
|
-
};
|
|
2566
|
-
readonly inferenceId: string;
|
|
2567
|
-
readonly promptParts?: readonly ({
|
|
2568
|
-
readonly type: "text";
|
|
2569
|
-
readonly text: string;
|
|
2570
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2571
|
-
readonly options: {
|
|
2572
|
-
readonly [x: string]: Schema.Json;
|
|
2573
|
-
};
|
|
2574
|
-
} | {
|
|
2575
|
-
readonly type: "file";
|
|
2576
|
-
readonly mediaType: string;
|
|
2577
|
-
readonly fileName?: string | undefined;
|
|
2578
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
2579
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2580
|
-
readonly options: {
|
|
2581
|
-
readonly [x: string]: Schema.Json;
|
|
2582
|
-
};
|
|
2583
|
-
} | {
|
|
2584
|
-
readonly type: "reasoning";
|
|
2585
|
-
readonly text: string;
|
|
2586
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2587
|
-
readonly options: {
|
|
2588
|
-
readonly [x: string]: Schema.Json;
|
|
2589
|
-
};
|
|
2590
|
-
} | {
|
|
2591
|
-
readonly type: "tool-call";
|
|
2592
|
-
readonly id: string;
|
|
2593
|
-
readonly name: string;
|
|
2594
|
-
readonly params: unknown;
|
|
2595
|
-
readonly providerExecuted: boolean;
|
|
2596
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2597
|
-
readonly options: {
|
|
2598
|
-
readonly [x: string]: Schema.Json;
|
|
2599
|
-
};
|
|
2600
|
-
} | {
|
|
2601
|
-
readonly type: "tool-result";
|
|
2602
|
-
readonly id: string;
|
|
2603
|
-
readonly name: string;
|
|
2604
|
-
readonly isFailure: boolean;
|
|
2605
|
-
readonly result: unknown;
|
|
2606
|
-
readonly providerExecuted: boolean;
|
|
2607
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2608
|
-
readonly options: {
|
|
2609
|
-
readonly [x: string]: Schema.Json;
|
|
2610
|
-
};
|
|
2611
|
-
} | {
|
|
2612
|
-
readonly type: "tool-approval-request";
|
|
2613
|
-
readonly approvalId: string;
|
|
2614
|
-
readonly toolCallId: string;
|
|
2615
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2616
|
-
readonly options: {
|
|
2617
|
-
readonly [x: string]: Schema.Json;
|
|
2618
|
-
};
|
|
2619
|
-
})[] | undefined;
|
|
2620
|
-
readonly reason: string;
|
|
2621
|
-
readonly runId: string;
|
|
2622
|
-
readonly turnId: string;
|
|
2623
|
-
} | {
|
|
2624
|
-
readonly createdAtMs?: number | undefined;
|
|
2625
|
-
readonly messageId: string;
|
|
2626
|
-
readonly seq: number;
|
|
2627
|
-
readonly cancellationReason?: string | undefined;
|
|
2628
|
-
readonly cancelledByCommandId?: string | undefined;
|
|
2629
|
-
readonly cancelledSeq?: number | undefined;
|
|
2630
|
-
readonly consumedTurnId?: string | undefined;
|
|
2631
|
-
readonly pausedByCommandId?: string | undefined;
|
|
2632
|
-
readonly pausedSeq?: number | undefined;
|
|
2633
|
-
readonly promotedSeq?: number | undefined;
|
|
2634
|
-
readonly _tag: "Steering";
|
|
2635
|
-
readonly commandId: string;
|
|
2636
|
-
readonly content: readonly [{
|
|
2637
|
-
readonly type: "text";
|
|
2638
|
-
readonly text: string;
|
|
2639
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2640
|
-
readonly options: {
|
|
2641
|
-
readonly [x: string]: Schema.Json;
|
|
2642
|
-
};
|
|
2643
|
-
}, ...{
|
|
2644
|
-
readonly type: "text";
|
|
2645
|
-
readonly text: string;
|
|
2646
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2647
|
-
readonly options: {
|
|
2648
|
-
readonly [x: string]: Schema.Json;
|
|
2649
|
-
};
|
|
2650
|
-
}[]] | readonly [{
|
|
2651
|
-
readonly type: "text";
|
|
2652
|
-
readonly text: string;
|
|
2653
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2654
|
-
readonly options: {
|
|
2655
|
-
readonly [x: string]: Schema.Json;
|
|
2656
|
-
};
|
|
2657
|
-
} | {
|
|
2658
|
-
readonly type: "file";
|
|
2659
|
-
readonly mediaType: string;
|
|
2660
|
-
readonly fileName?: string | undefined;
|
|
2661
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
2662
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2663
|
-
readonly options: {
|
|
2664
|
-
readonly [x: string]: Schema.Json;
|
|
2665
|
-
};
|
|
2666
|
-
}, ...({
|
|
2667
|
-
readonly type: "text";
|
|
2668
|
-
readonly text: string;
|
|
2669
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2670
|
-
readonly options: {
|
|
2671
|
-
readonly [x: string]: Schema.Json;
|
|
2672
|
-
};
|
|
2673
|
-
} | {
|
|
2674
|
-
readonly type: "file";
|
|
2675
|
-
readonly mediaType: string;
|
|
2676
|
-
readonly fileName?: string | undefined;
|
|
2677
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
2678
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
2679
|
-
readonly options: {
|
|
2680
|
-
readonly [x: string]: Schema.Json;
|
|
2681
|
-
};
|
|
2682
|
-
})[]];
|
|
2683
|
-
readonly runId: string;
|
|
2684
|
-
readonly consumedSeq: number;
|
|
2685
|
-
})[];
|
|
2686
2168
|
};
|
|
2687
2169
|
//#endregion
|
|
2688
2170
|
export { EDASessionBlockOnCommandRpcInput, EDASessionCommandRpcInput, EDASessionDurableObject, EDASessionDurableObjectOptions, EDASessionEventsRpcInput, EDASessionGrantRunRpcInput, EDASessionRpcSurface, EDASessionRunRequestOutcomeRpcInput, EDASessionScopedRpcInput, EDASessionSubmitBatchRpcInput, EDASessionTranscriptOptions, type EDAWebSocketProjection, EDA_WEB_SOCKET_PROJECTION_HEADER, EDA_WEB_SOCKET_STREAM_PARAM, edaRuntimeConfig, encodeEdaRpcCommittedDurableEvent, encodeEdaRpcSessionSnapshot, getEDASessionDurableObjectByName };
|
package/dist/durable-object.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as encodeEdaRpcCommittedDurableEvent, i as edaRuntimeConfig, n as EDA_WEB_SOCKET_PROJECTION_HEADER, o as encodeEdaRpcSessionSnapshot, r as EDA_WEB_SOCKET_STREAM_PARAM, s as getEDASessionDurableObjectByName, t as EDASessionDurableObject } from "./durable-object-
|
|
1
|
+
import { a as encodeEdaRpcCommittedDurableEvent, i as edaRuntimeConfig, n as EDA_WEB_SOCKET_PROJECTION_HEADER, o as encodeEdaRpcSessionSnapshot, r as EDA_WEB_SOCKET_STREAM_PARAM, s as getEDASessionDurableObjectByName, t as EDASessionDurableObject } from "./durable-object-95R1iqF6.js";
|
|
2
2
|
export { EDASessionDurableObject, EDA_WEB_SOCKET_PROJECTION_HEADER, EDA_WEB_SOCKET_STREAM_PARAM, edaRuntimeConfig, encodeEdaRpcCommittedDurableEvent, encodeEdaRpcSessionSnapshot, getEDASessionDurableObjectByName };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as DurableObjectTranscriptObserver, c as TranscriptAlert, i as DurableObjectSqlStorage, l as AdoptedLogIncarnation, n as DurableObjectSessionStoreOptions, o as DurableObjectTranscriptOptions, r as DurableObjectSqlCursor, s as DurableObjectTranscriptSliceLimits, t as DurableObjectSessionStorage } from "./durable-object-storage-
|
|
2
|
-
import { a as SessionOutcomeInput, c as SessionTranscriptBodyResult, d as SessionTranscriptWindowInput, f as SessionTranscriptWindowResult, i as SessionGrantRunInput, l as SessionTranscriptSummaryInput, m as edaSessionRpc, n as SessionBlockInput, o as SessionScopedInput, p as TranscriptCompactionSummary, r as SessionCommandInput, s as SessionTranscriptBodyInput, t as SessionBatchInput, u as SessionTranscriptSummaryResult } from "./rpc-spec-
|
|
3
|
-
import { _ as makeEDADurableObjectRuntimeLayer, a as EDASessionEventsInput, c as EDASessionSubmitInput, d as EDAWebSocketProjection, f as EDAWebSocketProjectionId, g as EDASessionDurableObjectStorage, h as EDADurableObjectRuntimeLayerOptions, i as EDASessionControllerOptions, l as EDATranscriptSocketOptions, m as EDAWebSocketProjectionResult, n as EDASessionBlockOnCommandInput, o as EDASessionScopedInput, p as EDAWebSocketProjectionInitial, r as EDASessionController, s as EDASessionSubmitBatchInput, t as EDAPreparedEventWebSocket, u as defaultActiveContentCadenceMs, v as DurableObjectAlarmStorage } from "./session-controller-
|
|
1
|
+
import { a as DurableObjectTranscriptObserver, c as TranscriptAlert, i as DurableObjectSqlStorage, l as AdoptedLogIncarnation, n as DurableObjectSessionStoreOptions, o as DurableObjectTranscriptOptions, r as DurableObjectSqlCursor, s as DurableObjectTranscriptSliceLimits, t as DurableObjectSessionStorage } from "./durable-object-storage-Dec6HWQ9.js";
|
|
2
|
+
import { a as SessionOutcomeInput, c as SessionTranscriptBodyResult, d as SessionTranscriptWindowInput, f as SessionTranscriptWindowResult, i as SessionGrantRunInput, l as SessionTranscriptSummaryInput, m as edaSessionRpc, n as SessionBlockInput, o as SessionScopedInput, p as TranscriptCompactionSummary, r as SessionCommandInput, s as SessionTranscriptBodyInput, t as SessionBatchInput, u as SessionTranscriptSummaryResult } from "./rpc-spec-DC1H-YCH.js";
|
|
3
|
+
import { _ as makeEDADurableObjectRuntimeLayer, a as EDASessionEventsInput, c as EDASessionSubmitInput, d as EDAWebSocketProjection, f as EDAWebSocketProjectionId, g as EDASessionDurableObjectStorage, h as EDADurableObjectRuntimeLayerOptions, i as EDASessionControllerOptions, l as EDATranscriptSocketOptions, m as EDAWebSocketProjectionResult, n as EDASessionBlockOnCommandInput, o as EDASessionScopedInput, p as EDAWebSocketProjectionInitial, r as EDASessionController, s as EDASessionSubmitBatchInput, t as EDAPreparedEventWebSocket, u as defaultActiveContentCadenceMs, v as DurableObjectAlarmStorage } from "./session-controller-CfhK1bUF.js";
|
|
4
4
|
import { EDASessionBlockOnCommandRpcInput, EDASessionCommandRpcInput, EDASessionDurableObject, EDASessionDurableObjectOptions, EDASessionEventsRpcInput, EDASessionGrantRunRpcInput, EDASessionRpcSurface, EDASessionRunRequestOutcomeRpcInput, EDASessionScopedRpcInput, EDASessionSubmitBatchRpcInput, EDASessionTranscriptOptions, EDA_WEB_SOCKET_PROJECTION_HEADER, EDA_WEB_SOCKET_STREAM_PARAM, edaRuntimeConfig, encodeEdaRpcCommittedDurableEvent, encodeEdaRpcSessionSnapshot, getEDASessionDurableObjectByName } from "./durable-object.js";
|
|
5
5
|
import { EDAOpenAiModelConfig, makeEDADurableObjectOpenAiModelLayer, makeEDADurableObjectOpenAiModelResolverLayer, makeEDAOpenAiClientLayer } from "./openai.js";
|
|
6
6
|
import { a as encodeEdaRpcDurableEvent, i as encodeEdaRpcCommand, n as decodeEdaRpcCommand, o as encodeEdaRpcSubmittables, r as decodeEdaRpcSubmittables, t as EDARpcSubmittable } from "./rpc-codec-B2aLiNqt.js";
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as encodeEdaRpcSubmittables, S as encodeEdaRpcDurableEvent, _ as TranscriptStorageStatus, a as SessionOutcomeInput, b as decodeEdaRpcSubmittables, c as SessionTranscriptBodyResult, d as SessionTranscriptWindowInput, f as SessionTranscriptWindowResult, g as DurableObjectTranscriptStore, h as DurableObjectTranscriptBuilder, i as SessionGrantRunInput, l as SessionTranscriptSummaryInput, m as edaSessionRpc, n as SessionBlockInput, o as SessionScopedInput, p as TranscriptCompactionSummary, r as SessionCommandInput, s as SessionTranscriptBodyInput, t as SessionBatchInput, u as SessionTranscriptSummaryResult, v as EDARpcSubmittable, x as encodeEdaRpcCommand, y as decodeEdaRpcCommand } from "./rpc-spec-
|
|
2
|
-
import { t as DurableObjectSessionStore } from "./durable-object-store-
|
|
3
|
-
import { i as makeEDADurableObjectRuntimeLayer, n as defaultActiveContentCadenceMs, r as EDAWebSocketProjectionId, t as EDASessionController } from "./session-controller-
|
|
4
|
-
import { a as encodeEdaRpcCommittedDurableEvent, c as DurableObjectAlarmScheduler, i as edaRuntimeConfig, n as EDA_WEB_SOCKET_PROJECTION_HEADER, o as encodeEdaRpcSessionSnapshot, r as EDA_WEB_SOCKET_STREAM_PARAM, s as getEDASessionDurableObjectByName, t as EDASessionDurableObject } from "./durable-object-
|
|
1
|
+
import { C as encodeEdaRpcSubmittables, S as encodeEdaRpcDurableEvent, _ as TranscriptStorageStatus, a as SessionOutcomeInput, b as decodeEdaRpcSubmittables, c as SessionTranscriptBodyResult, d as SessionTranscriptWindowInput, f as SessionTranscriptWindowResult, g as DurableObjectTranscriptStore, h as DurableObjectTranscriptBuilder, i as SessionGrantRunInput, l as SessionTranscriptSummaryInput, m as edaSessionRpc, n as SessionBlockInput, o as SessionScopedInput, p as TranscriptCompactionSummary, r as SessionCommandInput, s as SessionTranscriptBodyInput, t as SessionBatchInput, u as SessionTranscriptSummaryResult, v as EDARpcSubmittable, x as encodeEdaRpcCommand, y as decodeEdaRpcCommand } from "./rpc-spec-BRNFIsY1.js";
|
|
2
|
+
import { t as DurableObjectSessionStore } from "./durable-object-store-yY_KaFtw.js";
|
|
3
|
+
import { i as makeEDADurableObjectRuntimeLayer, n as defaultActiveContentCadenceMs, r as EDAWebSocketProjectionId, t as EDASessionController } from "./session-controller-CK5jY_Xp.js";
|
|
4
|
+
import { a as encodeEdaRpcCommittedDurableEvent, c as DurableObjectAlarmScheduler, i as edaRuntimeConfig, n as EDA_WEB_SOCKET_PROJECTION_HEADER, o as encodeEdaRpcSessionSnapshot, r as EDA_WEB_SOCKET_STREAM_PARAM, s as getEDASessionDurableObjectByName, t as EDASessionDurableObject } from "./durable-object-95R1iqF6.js";
|
|
5
5
|
import "./storage.js";
|
|
6
6
|
import { makeEDADurableObjectOpenAiModelLayer, makeEDADurableObjectOpenAiModelResolverLayer, makeEDAOpenAiClientLayer } from "./openai.js";
|
|
7
7
|
export { DurableObjectAlarmScheduler, DurableObjectSessionStore, DurableObjectTranscriptBuilder, DurableObjectTranscriptStore, EDARpcSubmittable, EDASessionController, EDASessionDurableObject, EDAWebSocketProjectionId, EDA_WEB_SOCKET_PROJECTION_HEADER, EDA_WEB_SOCKET_STREAM_PARAM, SessionBatchInput, SessionBlockInput, SessionCommandInput, SessionGrantRunInput, SessionOutcomeInput, SessionScopedInput, SessionTranscriptBodyInput, SessionTranscriptBodyResult, SessionTranscriptSummaryInput, SessionTranscriptSummaryResult, SessionTranscriptWindowInput, SessionTranscriptWindowResult, TranscriptCompactionSummary, TranscriptStorageStatus, decodeEdaRpcCommand, decodeEdaRpcSubmittables, defaultActiveContentCadenceMs, edaRuntimeConfig, edaSessionRpc, encodeEdaRpcCommand, encodeEdaRpcCommittedDurableEvent, encodeEdaRpcDurableEvent, encodeEdaRpcSessionSnapshot, encodeEdaRpcSubmittables, getEDASessionDurableObjectByName, makeEDADurableObjectOpenAiModelLayer, makeEDADurableObjectOpenAiModelResolverLayer, makeEDADurableObjectRuntimeLayer, makeEDAOpenAiClientLayer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as makeTranscriptWindowSource, a as TranscriptBuildSliceError, b as readTranscriptSlots, c as emptyTranscriptEffects, d as publishTranscriptEffects, f as reconcileTranscriptSlots, g as TranscriptRowDecodeError, h as runTranscriptSlice, l as hasPendingTranscriptWork, m as resolveTranscriptSliceLimits, n as makeDurableObjectEventLog, o as carriedDefinition, p as recordTranscriptSliceFailure, u as missedSessionAlert, v as readLogIncarnation, x as transcriptVersionMetaOf, y as readOrMintLogIncarnation } from "./durable-object-store-
|
|
1
|
+
import { _ as makeTranscriptWindowSource, a as TranscriptBuildSliceError, b as readTranscriptSlots, c as emptyTranscriptEffects, d as publishTranscriptEffects, f as reconcileTranscriptSlots, g as TranscriptRowDecodeError, h as runTranscriptSlice, l as hasPendingTranscriptWork, m as resolveTranscriptSliceLimits, n as makeDurableObjectEventLog, o as carriedDefinition, p as recordTranscriptSliceFailure, u as missedSessionAlert, v as readLogIncarnation, x as transcriptVersionMetaOf, y as readOrMintLogIncarnation } from "./durable-object-store-yY_KaFtw.js";
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
import * as Effect from "effect/Effect";
|
|
4
4
|
import * as Exit from "effect/Exit";
|
|
@@ -9,9 +9,9 @@ import { CommandId, CompactionId, RunRequestId, SequenceNumber, SessionId, Summa
|
|
|
9
9
|
import { EDATraceMetadata } from "effect-durable-agent/types/tracing";
|
|
10
10
|
import { CommittedDurableEvent, EDASessionStoreError } from "effect-durable-agent/services/session-store";
|
|
11
11
|
import { CommittedCommandTerminalEvent } from "effect-durable-agent/services/runtime";
|
|
12
|
-
import {
|
|
12
|
+
import { EDASessionSnapshot } from "effect-durable-agent/services/session-query";
|
|
13
13
|
import { RunGrantResult, RunRequestOutcome } from "effect-durable-agent/domain/run-scheduling";
|
|
14
|
-
import { EDATranscriptStore, TranscriptBodySource, TranscriptLogIncarnation, TranscriptVersion, TranscriptVersionMeta, TranscriptWindow, TranscriptWindowLimits, TranscriptWindowSelector,
|
|
14
|
+
import { EDATranscriptStore, TranscriptBodySource, TranscriptLogIncarnation, TranscriptVersion, TranscriptVersionMeta, TranscriptWindow, TranscriptWindowLimits, TranscriptWindowSelector, inactiveTranscriptWindow, readTranscriptWindowFrom } from "effect-durable-agent/transcript";
|
|
15
15
|
import * as Result from "effect/Result";
|
|
16
16
|
//#region src/rpc-codec.ts
|
|
17
17
|
/** Encode one durable event into a structured-clone-safe Durable Object RPC value. */
|
|
@@ -82,7 +82,7 @@ var DurableObjectTranscriptStore = class DurableObjectTranscriptStore {
|
|
|
82
82
|
readWindow(selector, limits) {
|
|
83
83
|
const { incarnation, slots } = this.#prepare();
|
|
84
84
|
const active = slots.find((slot) => slot.role === "active");
|
|
85
|
-
if (active === void 0) return Result.succeed(
|
|
85
|
+
if (active === void 0) return Result.succeed(inactiveTranscriptWindow(incarnation, this.#options.definitions.current.version, slots.find((slot) => slot.role === "building")));
|
|
86
86
|
const carried = carriedDefinition(this.#options.definitions, active.version) !== void 0;
|
|
87
87
|
try {
|
|
88
88
|
const window = readTranscriptWindowFrom(makeTranscriptWindowSource(this.#storage.sql, incarnation, active, carried), selector, limits);
|
|
@@ -380,10 +380,6 @@ const edaSessionRpc = {
|
|
|
380
380
|
input: SessionScopedInput,
|
|
381
381
|
output: EDASessionSnapshot
|
|
382
382
|
},
|
|
383
|
-
messages: {
|
|
384
|
-
input: SessionScopedInput,
|
|
385
|
-
output: DurableTranscriptMessages
|
|
386
|
-
},
|
|
387
383
|
destroySession: {
|
|
388
384
|
input: SessionScopedInput,
|
|
389
385
|
output: Schema.Void
|
|
@@ -408,4 +404,4 @@ const edaSessionRpc = {
|
|
|
408
404
|
//#endregion
|
|
409
405
|
export { encodeEdaRpcSubmittables as C, encodeEdaRpcDurableEvent as S, TranscriptStorageStatus as _, SessionOutcomeInput as a, decodeEdaRpcSubmittables as b, SessionTranscriptBodyResult as c, SessionTranscriptWindowInput as d, SessionTranscriptWindowResult as f, DurableObjectTranscriptStore as g, DurableObjectTranscriptBuilder as h, SessionGrantRunInput as i, SessionTranscriptSummaryInput as l, edaSessionRpc as m, SessionBlockInput as n, SessionScopedInput as o, TranscriptCompactionSummary as p, SessionCommandInput as r, SessionTranscriptBodyInput as s, SessionBatchInput as t, SessionTranscriptSummaryResult as u, EDARpcSubmittable as v, encodeEdaRpcCommand as x, decodeEdaRpcCommand as y };
|
|
410
406
|
|
|
411
|
-
//# sourceMappingURL=rpc-spec-
|
|
407
|
+
//# sourceMappingURL=rpc-spec-BRNFIsY1.js.map
|