effect-durable-agent 0.1.0-alpha.22 → 0.1.0-alpha.24
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/domain/command-queues.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/in-memory-D8qQXNc5.js +150 -0
- package/dist/in-memory-D8qQXNc5.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/{window-read-B8aF_hDq.js → interpreter-BYstFpr4.js} +82 -868
- package/dist/interpreter-BYstFpr4.js.map +1 -0
- package/dist/records-DWKEjuqb.js +675 -0
- package/dist/records-DWKEjuqb.js.map +1 -0
- package/dist/{reduced-state-PJdig48e.d.ts → reduced-state-B5WxKSM5.d.ts} +4206 -4206
- package/dist/{reducer-registry-BAbhZs6d.d.ts → reducer-registry-CPObI3cs.d.ts} +2 -2
- package/dist/{run-scheduling-wakeup-QLK87OqG.d.ts → run-scheduling-wakeup-B19JTeyq.d.ts} +2 -2
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/model-call.d.ts +1 -1
- package/dist/services/prompt-projector.d.ts +1 -1
- package/dist/services/reducer-registry.d.ts +1 -1
- package/dist/services/reducer-registry.js +1 -1
- package/dist/services/run-scheduler.d.ts +1 -1
- package/dist/services/run-scheduling-wakeup.d.ts +1 -1
- package/dist/services/runtime-layer.d.ts +6 -6
- package/dist/services/runtime-layer.js +3 -3
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +1 -1
- package/dist/services/session-query.d.ts +1 -1
- package/dist/services/session-query.js +2 -2
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-state.js +1 -1
- package/dist/services/session-store.d.ts +1 -1
- package/dist/services/session-store.js +271 -1
- package/dist/services/session-store.js.map +1 -0
- package/dist/services/sink-checkpoint-store.d.ts +1 -1
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/sink-registry.js +1 -1
- package/dist/services/tool-registry.d.ts +1 -1
- package/dist/{session-state-StlO5B2N.js → session-state-BW0l2aNk.js} +3 -3
- package/dist/{session-state-StlO5B2N.js.map → session-state-BW0l2aNk.js.map} +1 -1
- package/dist/{session-store-ByDjS03N.d.ts → session-store-CWYZ29CV.d.ts} +163 -45
- package/dist/{sink-checkpoint-store-BHb8YRTw.d.ts → sink-checkpoint-store-B8Ky5nfW.d.ts} +2 -2
- package/dist/{sink-registry-DEneTH8u.js → sink-registry-D0MetcNq.js} +2 -2
- package/dist/{sink-registry-DEneTH8u.js.map → sink-registry-D0MetcNq.js.map} +1 -1
- package/dist/subscription-DelB8L87.d.ts +958 -0
- package/dist/subscription-g5W0Ggqx.js +498 -0
- package/dist/subscription-g5W0Ggqx.js.map +1 -0
- package/dist/testkit/layers.d.ts +9 -6
- package/dist/testkit/layers.js +4 -4
- package/dist/testkit/layers.js.map +1 -1
- package/dist/testkit/transcript.d.ts +226 -0
- package/dist/testkit/transcript.js +1475 -0
- package/dist/testkit/transcript.js.map +1 -0
- package/dist/{tool-registry-CxZ0iuYb.d.ts → tool-registry-B_WE2ZwK.d.ts} +2 -2
- package/dist/transcript.d.ts +40 -99
- package/dist/transcript.js +99 -170
- package/dist/transcript.js.map +1 -1
- package/dist/websocket.d.ts +2209 -2
- package/dist/websocket.js +704 -18
- package/dist/websocket.js.map +1 -1
- package/dist/window-read-DBf1Iktt.d.ts +104 -0
- package/dist/window-read-U55aAeuz.js +184 -0
- package/dist/window-read-U55aAeuz.js.map +1 -0
- package/package.json +5 -1
- package/dist/session-store-DcJjs4Fd.js +0 -413
- package/dist/session-store-DcJjs4Fd.js.map +0 -1
- package/dist/window-read-B8aF_hDq.js.map +0 -1
|
@@ -153,6 +153,9 @@ type TranscriptBody = typeof TranscriptBody.Type;
|
|
|
153
153
|
/** Host-defined decoration name, as written by a mapping operation. */
|
|
154
154
|
declare const TranscriptDecorationKey: Schema.String;
|
|
155
155
|
type TranscriptDecorationKey = typeof TranscriptDecorationKey.Type;
|
|
156
|
+
/** Id of a decoration list entry that is keyed by its ordinal. */
|
|
157
|
+
declare const TranscriptDecorationEntryId: Schema.NonEmptyString;
|
|
158
|
+
type TranscriptDecorationEntryId = typeof TranscriptDecorationEntryId.Type;
|
|
156
159
|
/** Key of one decoration list entry: an entry id or a host-assigned ordinal. */
|
|
157
160
|
declare const TranscriptDecorationEntryKey: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
158
161
|
type TranscriptDecorationEntryKey = typeof TranscriptDecorationEntryKey.Type;
|
|
@@ -165,6 +168,8 @@ declare const TranscriptDecoration: Schema.TaggedUnion<{
|
|
|
165
168
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
166
169
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
167
170
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
171
|
+
/** The entry's id when the list is keyed by id or ordinal (the key is then the ordinal). */
|
|
172
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
168
173
|
}>>;
|
|
169
174
|
}>;
|
|
170
175
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -178,6 +183,8 @@ declare const TranscriptDecorations: Schema.$Record<Schema.String, Schema.Tagged
|
|
|
178
183
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
179
184
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
180
185
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
186
|
+
/** The entry's id when the list is keyed by id or ordinal (the key is then the ordinal). */
|
|
187
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
181
188
|
}>>;
|
|
182
189
|
}>;
|
|
183
190
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -373,6 +380,8 @@ declare const TranscriptBufferedDecoration: Schema.Struct<{
|
|
|
373
380
|
readonly operation: Schema.Int;
|
|
374
381
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
375
382
|
readonly entryKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
383
|
+
/** The entry's id, for a list keyed by id or ordinal (`entryKey` then holds the ordinal). */
|
|
384
|
+
readonly entryId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
376
385
|
}>;
|
|
377
386
|
type TranscriptBufferedDecoration = typeof TranscriptBufferedDecoration.Type;
|
|
378
387
|
/**
|
|
@@ -442,6 +451,8 @@ declare const TranscriptUserRecord: Schema.Struct<{
|
|
|
442
451
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
443
452
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
444
453
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
454
|
+
/** The entry's id when the list is keyed by id or ordinal (the key is then the ordinal). */
|
|
455
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
445
456
|
}>>;
|
|
446
457
|
}>;
|
|
447
458
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -701,6 +712,8 @@ declare const TranscriptSessionContextRecord: Schema.Struct<{
|
|
|
701
712
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
702
713
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
703
714
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
715
|
+
/** The entry's id when the list is keyed by id or ordinal (the key is then the ordinal). */
|
|
716
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
704
717
|
}>>;
|
|
705
718
|
}>;
|
|
706
719
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -721,6 +734,8 @@ declare const TranscriptDecorationBufferRecord: Schema.Struct<{
|
|
|
721
734
|
readonly operation: Schema.Int;
|
|
722
735
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
723
736
|
readonly entryKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
737
|
+
/** The entry's id, for a list keyed by id or ordinal (`entryKey` then holds the ordinal). */
|
|
738
|
+
readonly entryId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
724
739
|
}>>;
|
|
725
740
|
readonly kind: Schema.tag<"decorationBuffer">;
|
|
726
741
|
readonly id: Schema.TemplateLiteral<readonly ["decorations:", Schema.Literals<readonly ["command", "idempotencyKey"]>, ":", Schema.NonEmptyString]>;
|
|
@@ -783,6 +798,8 @@ declare const TranscriptRecord: Schema.Union<readonly [Schema.Struct<{
|
|
|
783
798
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
784
799
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
785
800
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
801
|
+
/** The entry's id when the list is keyed by id or ordinal (the key is then the ordinal). */
|
|
802
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
786
803
|
}>>;
|
|
787
804
|
}>;
|
|
788
805
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -1025,6 +1042,8 @@ declare const TranscriptRecord: Schema.Union<readonly [Schema.Struct<{
|
|
|
1025
1042
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
1026
1043
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
1027
1044
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1045
|
+
/** The entry's id when the list is keyed by id or ordinal (the key is then the ordinal). */
|
|
1046
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1028
1047
|
}>>;
|
|
1029
1048
|
}>;
|
|
1030
1049
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -1042,6 +1061,8 @@ declare const TranscriptRecord: Schema.Union<readonly [Schema.Struct<{
|
|
|
1042
1061
|
readonly operation: Schema.Int;
|
|
1043
1062
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1044
1063
|
readonly entryKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1064
|
+
/** The entry's id, for a list keyed by id or ordinal (`entryKey` then holds the ordinal). */
|
|
1065
|
+
readonly entryId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1045
1066
|
}>>;
|
|
1046
1067
|
readonly kind: Schema.tag<"decorationBuffer">;
|
|
1047
1068
|
readonly id: Schema.TemplateLiteral<readonly ["decorations:", Schema.Literals<readonly ["command", "idempotencyKey"]>, ":", Schema.NonEmptyString]>;
|
|
@@ -1174,6 +1195,8 @@ declare const TranscriptRecordFromEnvelope: Schema.decodeTo<Schema.Union<readonl
|
|
|
1174
1195
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
1175
1196
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
1176
1197
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1198
|
+
/** The entry's id when the list is keyed by id or ordinal (the key is then the ordinal). */
|
|
1199
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1177
1200
|
}>>;
|
|
1178
1201
|
}>;
|
|
1179
1202
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -1416,6 +1439,8 @@ declare const TranscriptRecordFromEnvelope: Schema.decodeTo<Schema.Union<readonl
|
|
|
1416
1439
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
1417
1440
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
1418
1441
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1442
|
+
/** The entry's id when the list is keyed by id or ordinal (the key is then the ordinal). */
|
|
1443
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1419
1444
|
}>>;
|
|
1420
1445
|
}>;
|
|
1421
1446
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -1433,6 +1458,8 @@ declare const TranscriptRecordFromEnvelope: Schema.decodeTo<Schema.Union<readonl
|
|
|
1433
1458
|
readonly operation: Schema.Int;
|
|
1434
1459
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1435
1460
|
readonly entryKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1461
|
+
/** The entry's id, for a list keyed by id or ordinal (`entryKey` then holds the ordinal). */
|
|
1462
|
+
readonly entryId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1436
1463
|
}>>;
|
|
1437
1464
|
readonly kind: Schema.tag<"decorationBuffer">;
|
|
1438
1465
|
readonly id: Schema.TemplateLiteral<readonly ["decorations:", Schema.Literals<readonly ["command", "idempotencyKey"]>, ":", Schema.NonEmptyString]>;
|
|
@@ -1507,6 +1534,8 @@ declare const TranscriptRecordViewFromEnvelope: Schema.Union<readonly [Schema.de
|
|
|
1507
1534
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
1508
1535
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
1509
1536
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1537
|
+
/** The entry's id when the list is keyed by id or ordinal (the key is then the ordinal). */
|
|
1538
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1510
1539
|
}>>;
|
|
1511
1540
|
}>;
|
|
1512
1541
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -1749,6 +1778,8 @@ declare const TranscriptRecordViewFromEnvelope: Schema.Union<readonly [Schema.de
|
|
|
1749
1778
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
1750
1779
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
1751
1780
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1781
|
+
/** The entry's id when the list is keyed by id or ordinal (the key is then the ordinal). */
|
|
1782
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1752
1783
|
}>>;
|
|
1753
1784
|
}>;
|
|
1754
1785
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -1766,6 +1797,8 @@ declare const TranscriptRecordViewFromEnvelope: Schema.Union<readonly [Schema.de
|
|
|
1766
1797
|
readonly operation: Schema.Int;
|
|
1767
1798
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1768
1799
|
readonly entryKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1800
|
+
/** The entry's id, for a list keyed by id or ordinal (`entryKey` then holds the ordinal). */
|
|
1801
|
+
readonly entryId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1769
1802
|
}>>;
|
|
1770
1803
|
readonly kind: Schema.tag<"decorationBuffer">;
|
|
1771
1804
|
readonly id: Schema.TemplateLiteral<readonly ["decorations:", Schema.Literals<readonly ["command", "idempotencyKey"]>, ":", Schema.NonEmptyString]>;
|
|
@@ -1858,6 +1891,10 @@ declare const TranscriptListEntryKey: Schema.TaggedUnion<{
|
|
|
1858
1891
|
readonly Id: Schema.TaggedStruct<"Id", {
|
|
1859
1892
|
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1860
1893
|
}>;
|
|
1894
|
+
readonly IdOrOrdinal: Schema.TaggedStruct<"IdOrOrdinal", {
|
|
1895
|
+
readonly id: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1896
|
+
readonly ordinal: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1897
|
+
}>;
|
|
1861
1898
|
readonly Ordinal: Schema.TaggedStruct<"Ordinal", {
|
|
1862
1899
|
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1863
1900
|
}>;
|
|
@@ -1883,6 +1920,10 @@ declare const TranscriptMappingOperation: Schema.TaggedUnion<{
|
|
|
1883
1920
|
readonly Id: Schema.TaggedStruct<"Id", {
|
|
1884
1921
|
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1885
1922
|
}>;
|
|
1923
|
+
readonly IdOrOrdinal: Schema.TaggedStruct<"IdOrOrdinal", {
|
|
1924
|
+
readonly id: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1925
|
+
readonly ordinal: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1926
|
+
}>;
|
|
1886
1927
|
readonly Ordinal: Schema.TaggedStruct<"Ordinal", {
|
|
1887
1928
|
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1888
1929
|
}>;
|
|
@@ -1927,6 +1968,10 @@ declare const TranscriptMapping: Schema.Struct<{
|
|
|
1927
1968
|
readonly Id: Schema.TaggedStruct<"Id", {
|
|
1928
1969
|
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1929
1970
|
}>;
|
|
1971
|
+
readonly IdOrOrdinal: Schema.TaggedStruct<"IdOrOrdinal", {
|
|
1972
|
+
readonly id: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1973
|
+
readonly ordinal: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1974
|
+
}>;
|
|
1930
1975
|
readonly Ordinal: Schema.TaggedStruct<"Ordinal", {
|
|
1931
1976
|
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1932
1977
|
}>;
|
|
@@ -1986,6 +2031,10 @@ declare const TranscriptMappings: Schema.Struct<{
|
|
|
1986
2031
|
readonly Id: Schema.TaggedStruct<"Id", {
|
|
1987
2032
|
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1988
2033
|
}>;
|
|
2034
|
+
readonly IdOrOrdinal: Schema.TaggedStruct<"IdOrOrdinal", {
|
|
2035
|
+
readonly id: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
2036
|
+
readonly ordinal: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
2037
|
+
}>;
|
|
1989
2038
|
readonly Ordinal: Schema.TaggedStruct<"Ordinal", {
|
|
1990
2039
|
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
1991
2040
|
}>;
|
|
@@ -2103,12 +2152,16 @@ declare const TranscriptReadiness: Schema.Union<readonly [Schema.TaggedUnion<{
|
|
|
2103
2152
|
}>, never, never>]>;
|
|
2104
2153
|
type TranscriptReadiness = typeof TranscriptReadiness.Type;
|
|
2105
2154
|
/**
|
|
2106
|
-
*
|
|
2107
|
-
*
|
|
2155
|
+
* One live part of the inference streaming now.
|
|
2156
|
+
*
|
|
2157
|
+
* `id` is stable for the life of the part (`text:<providerPartId>`, `reasoning:<providerPartId>`,
|
|
2158
|
+
* `tool:<toolCallId>`), so a client keys a streaming part by it and replaces it in place as it
|
|
2159
|
+
* grows. `paramsText` is the tool-call parameter text streamed so far; it is speculative until
|
|
2160
|
+
* the call is sealed into a tool record.
|
|
2108
2161
|
*/
|
|
2109
|
-
declare const
|
|
2110
|
-
readonly
|
|
2111
|
-
readonly
|
|
2162
|
+
declare const TranscriptActivePart: Schema.Struct<{
|
|
2163
|
+
readonly id: Schema.NonEmptyString;
|
|
2164
|
+
readonly part: Schema.Union<readonly [Schema.TaggedUnion<{
|
|
2112
2165
|
readonly Reasoning: Schema.TaggedStruct<"Reasoning", {
|
|
2113
2166
|
readonly text: Schema.String;
|
|
2114
2167
|
}>;
|
|
@@ -2149,7 +2202,62 @@ declare const TranscriptActiveContent: Schema.Struct<{
|
|
|
2149
2202
|
readonly partType: Schema.String;
|
|
2150
2203
|
}>>, Schema.Struct<{
|
|
2151
2204
|
readonly _tag: Schema.String;
|
|
2152
|
-
}>, never, never>]
|
|
2205
|
+
}>, never, never>]>;
|
|
2206
|
+
readonly paramsText: Schema.optionalKey<Schema.String>;
|
|
2207
|
+
}>;
|
|
2208
|
+
type TranscriptActivePart = typeof TranscriptActivePart.Type;
|
|
2209
|
+
/**
|
|
2210
|
+
* Accumulated parts of the inference streaming now, captured at the same publication boundary as
|
|
2211
|
+
* the window. Owned by the live runtime; storage-level reads never include it.
|
|
2212
|
+
*/
|
|
2213
|
+
declare const TranscriptActiveContent: Schema.Struct<{
|
|
2214
|
+
readonly assistantId: Schema.TemplateLiteral<readonly ["assistant:", Schema.brand<Schema.String, "InferenceId">]>;
|
|
2215
|
+
readonly parts: Schema.$Array<Schema.Struct<{
|
|
2216
|
+
readonly id: Schema.NonEmptyString;
|
|
2217
|
+
readonly part: Schema.Union<readonly [Schema.TaggedUnion<{
|
|
2218
|
+
readonly Reasoning: Schema.TaggedStruct<"Reasoning", {
|
|
2219
|
+
readonly text: Schema.String;
|
|
2220
|
+
}>;
|
|
2221
|
+
readonly Text: Schema.TaggedStruct<"Text", {
|
|
2222
|
+
readonly text: Schema.String;
|
|
2223
|
+
}>;
|
|
2224
|
+
readonly ToolCall: Schema.TaggedStruct<"ToolCall", {
|
|
2225
|
+
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
2226
|
+
readonly toolName: Schema.NonEmptyString;
|
|
2227
|
+
readonly providerExecuted: Schema.Boolean;
|
|
2228
|
+
readonly toolId: Schema.optionalKey<Schema.TemplateLiteral<readonly ["tool:", Schema.brand<Schema.String, "ToolCallId">]>>;
|
|
2229
|
+
}>;
|
|
2230
|
+
readonly ToolResult: Schema.TaggedStruct<"ToolResult", {
|
|
2231
|
+
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
2232
|
+
readonly toolName: Schema.NonEmptyString;
|
|
2233
|
+
readonly isFailure: Schema.Boolean;
|
|
2234
|
+
readonly result: Schema.TaggedUnion<{
|
|
2235
|
+
readonly Inline: Schema.TaggedStruct<"Inline", {
|
|
2236
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2237
|
+
readonly source: Schema.Struct<{
|
|
2238
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2239
|
+
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
2240
|
+
}>;
|
|
2241
|
+
}>;
|
|
2242
|
+
readonly Ref: Schema.TaggedStruct<"Ref", {
|
|
2243
|
+
readonly source: Schema.Struct<{
|
|
2244
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2245
|
+
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
2246
|
+
}>;
|
|
2247
|
+
readonly byteLength: Schema.Int;
|
|
2248
|
+
}>;
|
|
2249
|
+
}>;
|
|
2250
|
+
}>;
|
|
2251
|
+
readonly Unknown: Schema.TaggedStruct<"Unknown", {
|
|
2252
|
+
readonly partType: Schema.String;
|
|
2253
|
+
}>;
|
|
2254
|
+
}>, Schema.decodeTo<Schema.toType<Schema.TaggedStruct<"Unknown", {
|
|
2255
|
+
readonly partType: Schema.String;
|
|
2256
|
+
}>>, Schema.Struct<{
|
|
2257
|
+
readonly _tag: Schema.String;
|
|
2258
|
+
}>, never, never>]>;
|
|
2259
|
+
readonly paramsText: Schema.optionalKey<Schema.String>;
|
|
2260
|
+
}>>;
|
|
2153
2261
|
}>;
|
|
2154
2262
|
type TranscriptActiveContent = typeof TranscriptActiveContent.Type;
|
|
2155
2263
|
/**
|
|
@@ -2219,6 +2327,7 @@ declare const TranscriptWindow: Schema.Struct<{
|
|
|
2219
2327
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
2220
2328
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
2221
2329
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2330
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2222
2331
|
}>>;
|
|
2223
2332
|
}>;
|
|
2224
2333
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -2459,6 +2568,7 @@ declare const TranscriptWindow: Schema.Struct<{
|
|
|
2459
2568
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
2460
2569
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
2461
2570
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2571
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2462
2572
|
}>>;
|
|
2463
2573
|
}>;
|
|
2464
2574
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -2475,6 +2585,7 @@ declare const TranscriptWindow: Schema.Struct<{
|
|
|
2475
2585
|
readonly operation: Schema.Int;
|
|
2476
2586
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2477
2587
|
readonly entryKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
2588
|
+
readonly entryId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2478
2589
|
}>>;
|
|
2479
2590
|
readonly kind: Schema.tag<"decorationBuffer">;
|
|
2480
2591
|
readonly id: Schema.TemplateLiteral<readonly ["decorations:", Schema.Literals<readonly ["command", "idempotencyKey"]>, ":", Schema.NonEmptyString]>;
|
|
@@ -2566,6 +2677,7 @@ declare const TranscriptWindow: Schema.Struct<{
|
|
|
2566
2677
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
2567
2678
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
2568
2679
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2680
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2569
2681
|
}>>;
|
|
2570
2682
|
}>;
|
|
2571
2683
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -2806,6 +2918,7 @@ declare const TranscriptWindow: Schema.Struct<{
|
|
|
2806
2918
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
2807
2919
|
readonly key: Schema.Union<readonly [Schema.String, Schema.Int]>;
|
|
2808
2920
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2921
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2809
2922
|
}>>;
|
|
2810
2923
|
}>;
|
|
2811
2924
|
readonly Value: Schema.TaggedStruct<"Value", {
|
|
@@ -2822,6 +2935,7 @@ declare const TranscriptWindow: Schema.Struct<{
|
|
|
2822
2935
|
readonly operation: Schema.Int;
|
|
2823
2936
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2824
2937
|
readonly entryKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
2938
|
+
readonly entryId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2825
2939
|
}>>;
|
|
2826
2940
|
readonly kind: Schema.tag<"decorationBuffer">;
|
|
2827
2941
|
readonly id: Schema.TemplateLiteral<readonly ["decorations:", Schema.Literals<readonly ["command", "idempotencyKey"]>, ":", Schema.NonEmptyString]>;
|
|
@@ -2860,48 +2974,52 @@ declare const TranscriptWindow: Schema.Struct<{
|
|
|
2860
2974
|
}>, never, never>]>>;
|
|
2861
2975
|
readonly activeContent: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2862
2976
|
readonly assistantId: Schema.TemplateLiteral<readonly ["assistant:", Schema.brand<Schema.String, "InferenceId">]>;
|
|
2863
|
-
readonly parts: Schema.$Array<Schema.
|
|
2864
|
-
readonly
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
readonly
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
readonly
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
readonly
|
|
2882
|
-
|
|
2883
|
-
readonly
|
|
2884
|
-
readonly
|
|
2885
|
-
readonly
|
|
2977
|
+
readonly parts: Schema.$Array<Schema.Struct<{
|
|
2978
|
+
readonly id: Schema.NonEmptyString;
|
|
2979
|
+
readonly part: Schema.Union<readonly [Schema.TaggedUnion<{
|
|
2980
|
+
readonly Reasoning: Schema.TaggedStruct<"Reasoning", {
|
|
2981
|
+
readonly text: Schema.String;
|
|
2982
|
+
}>;
|
|
2983
|
+
readonly Text: Schema.TaggedStruct<"Text", {
|
|
2984
|
+
readonly text: Schema.String;
|
|
2985
|
+
}>;
|
|
2986
|
+
readonly ToolCall: Schema.TaggedStruct<"ToolCall", {
|
|
2987
|
+
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
2988
|
+
readonly toolName: Schema.NonEmptyString;
|
|
2989
|
+
readonly providerExecuted: Schema.Boolean;
|
|
2990
|
+
readonly toolId: Schema.optionalKey<Schema.TemplateLiteral<readonly ["tool:", Schema.brand<Schema.String, "ToolCallId">]>>;
|
|
2991
|
+
}>;
|
|
2992
|
+
readonly ToolResult: Schema.TaggedStruct<"ToolResult", {
|
|
2993
|
+
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
2994
|
+
readonly toolName: Schema.NonEmptyString;
|
|
2995
|
+
readonly isFailure: Schema.Boolean;
|
|
2996
|
+
readonly result: Schema.TaggedUnion<{
|
|
2997
|
+
readonly Inline: Schema.TaggedStruct<"Inline", {
|
|
2998
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2999
|
+
readonly source: Schema.Struct<{
|
|
3000
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
3001
|
+
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
3002
|
+
}>;
|
|
2886
3003
|
}>;
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
3004
|
+
readonly Ref: Schema.TaggedStruct<"Ref", {
|
|
3005
|
+
readonly source: Schema.Struct<{
|
|
3006
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
3007
|
+
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Int]>>;
|
|
3008
|
+
}>;
|
|
3009
|
+
readonly byteLength: Schema.Int;
|
|
2892
3010
|
}>;
|
|
2893
|
-
readonly byteLength: Schema.Int;
|
|
2894
3011
|
}>;
|
|
2895
3012
|
}>;
|
|
2896
|
-
|
|
2897
|
-
|
|
3013
|
+
readonly Unknown: Schema.TaggedStruct<"Unknown", {
|
|
3014
|
+
readonly partType: Schema.String;
|
|
3015
|
+
}>;
|
|
3016
|
+
}>, Schema.decodeTo<Schema.toType<Schema.TaggedStruct<"Unknown", {
|
|
2898
3017
|
readonly partType: Schema.String;
|
|
2899
|
-
}
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
}>, never, never>]>>;
|
|
3018
|
+
}>>, Schema.Struct<{
|
|
3019
|
+
readonly _tag: Schema.String;
|
|
3020
|
+
}>, never, never>]>;
|
|
3021
|
+
readonly paramsText: Schema.optionalKey<Schema.String>;
|
|
3022
|
+
}>>;
|
|
2905
3023
|
}>>>;
|
|
2906
3024
|
readonly hasOlder: Schema.Boolean;
|
|
2907
3025
|
readonly hasNewer: Schema.Boolean;
|
|
@@ -3180,5 +3298,5 @@ declare const queryCommittedEvents: <E extends DurableEventEnvelope>(store: EDAS
|
|
|
3180
3298
|
readonly limit?: number;
|
|
3181
3299
|
}) => Effect.Effect<ReadonlyArray<CommittedDurableEvent<E>>, EDASessionStoreError>;
|
|
3182
3300
|
//#endregion
|
|
3183
|
-
export {
|
|
3184
|
-
//# sourceMappingURL=session-store-
|
|
3301
|
+
export { TranscriptAssistantPart as $, TranscriptDefinition as A, TranscriptToolRecord as At, makeTranscriptDefinition as B, transcriptDecorationBufferLimit as Bt, TranscriptVersionMeta as C, TranscriptRecordView as Ct, TranscriptWindowSelector as D, TranscriptRunOutcome as Dt, TranscriptWindowLimits as E, TranscriptRunMember as Et, TranscriptMappingOperation as F, TranscriptVersion as Ft, DecorationBufferRecordId as G, AssistantRecordId as H, transcriptRecordId as Ht, TranscriptMappingTarget as I, UserRecordId as It, PendingTranscriptUserRecord as J, ImportAssistantRecordId as K, TranscriptMappings as L, isPendingTranscriptUserRecord as Lt, TranscriptListEntryKey as M, TranscriptUnknownRecord as Mt, TranscriptMappedEvent as N, TranscriptUserRecord as Nt, defaultTranscriptWindowLimits as O, TranscriptSessionContextRecord as Ot, TranscriptMapping as P, TranscriptUserState as Pt, TranscriptAssistantLifecycle as Q, TranscriptUserFallback as R, isTopLevelTranscriptRecord as Rt, TranscriptReadiness as S, TranscriptRecordKind as St, TranscriptWindow as T, TranscriptRunGroupRecord as Tt, CompactionRecordId as U, transcriptStoredInlineBodyLimit as Ut, transcriptMappingBounds as V, transcriptRecordEnvelopeFormat as Vt, ConsumedTranscriptUserRecord as W, SessionContextRecordId as X, RunGroupRecordId as Y, ToolRecordId as Z, EDATranscriptStoreShape as _, TranscriptPosition as _t, EDAReducerCheckpoint as a, TranscriptCompactionRecord as at, TranscriptActiveContent as b, TranscriptRecordFromEnvelope as bt, EDASessionStoreShape as c, TranscriptDecorationBufferRecord as ct, SaveReducerCheckpointInput as d, TranscriptDecorationKey as dt, TranscriptAssistantRecord as et, hasEDASessionStoreError as f, TranscriptDecorations as ft, EDATranscriptStore as g, TranscriptOrderKey as gt, selectCommittedEvent as h, TranscriptOrder as ht, EDAAppEvents as i, TranscriptClassification as it, TranscriptDefinitionError as j, TranscriptTopLevelRecord as jt, transcriptCursorOf as k, TranscriptToolLifecycle as kt, FindCommandAdmissionInput as l, TranscriptDecorationEntryId as lt, registerAppEvents as m, TranscriptLogIncarnation as mt, DurableAppendBatch as n, TranscriptBodySource as nt, EDASessionStore as o, TranscriptCursor as ot, queryCommittedEvents as p, TranscriptFieldPath as pt, InferenceAssistantRecordId as q, DurableAppendEntry as r, TranscriptBufferedDecoration as rt, EDASessionStoreError as s, TranscriptDecoration as st, CommittedDurableEvent as t, TranscriptBody as tt, InMemoryStoreOptions as u, TranscriptDecorationEntryKey as ut, TranscriptCursorMismatch as v, TranscriptRecord as vt, TranscriptVersionStatus as w, TranscriptRecordViewFromEnvelope as wt, TranscriptActivePart as x, TranscriptRecordId as xt, TranscriptMaintenanceConfig as y, TranscriptRecordEnvelope as yt, emptyTranscriptMappings as z, runGroupStatus as zt };
|
|
3302
|
+
//# sourceMappingURL=session-store-CWYZ29CV.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as SequenceNumber } from "./core-BcimKMIv.js";
|
|
2
|
-
import { s as EDASessionStoreError } from "./session-store-
|
|
2
|
+
import { s as EDASessionStoreError } from "./session-store-CWYZ29CV.js";
|
|
3
3
|
import * as Context from "effect/Context";
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
@@ -36,4 +36,4 @@ declare class SinkCheckpointStore extends SinkCheckpointStore_base {
|
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
38
|
export { StoredSinkCheckpoint as i, SinkCheckpointStore as n, SinkCheckpointStoreShape as r, EDASinkName as t };
|
|
39
|
-
//# sourceMappingURL=sink-checkpoint-store-
|
|
39
|
+
//# sourceMappingURL=sink-checkpoint-store-B8Ky5nfW.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SequenceNumber } from "./types/core.js";
|
|
2
2
|
import { foldReducedState, initialReducedState } from "./domain/reduced-state.js";
|
|
3
|
-
import {
|
|
3
|
+
import { EDASessionStore, EDASessionStoreError, selectCommittedEvent } from "./services/session-store.js";
|
|
4
4
|
import { n as SessionContext, t as EventFactory } from "./event-factory-VAci3NJb.js";
|
|
5
5
|
import { IdGenerator } from "./services/id-generator.js";
|
|
6
6
|
import { annotateEdaSpan } from "./services/tracing.js";
|
|
@@ -342,4 +342,4 @@ const matchesInterest = (event, interests) => interests === void 0 || interests
|
|
|
342
342
|
//#endregion
|
|
343
343
|
export { EDASinkRegistry as n, EDASink as t };
|
|
344
344
|
|
|
345
|
-
//# sourceMappingURL=sink-registry-
|
|
345
|
+
//# sourceMappingURL=sink-registry-D0MetcNq.js.map
|