effect-durable-agent 0.1.0-alpha.19 → 0.1.0-alpha.21
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/{compaction-Bell28K8.js → compaction-ajHZ5l7f.js} +60 -8
- package/dist/compaction-ajHZ5l7f.js.map +1 -0
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/context-projection.js +1 -1
- package/dist/domain/context-projection.js.map +1 -1
- package/dist/domain/message-transcript.d.ts +2 -2
- package/dist/domain/message-transcript.js +10 -2
- package/dist/domain/message-transcript.js.map +1 -1
- package/dist/domain/reduced-state-schema.d.ts +1 -1
- package/dist/domain/reduced-state-schema.js +2 -2
- package/dist/domain/reduced-state-schema.js.map +1 -1
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/domain/reduced-state.js +1 -1
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/{durable-DRY7AcsF.js → durable-CD__3ztN.js} +67 -4
- package/dist/durable-CD__3ztN.js.map +1 -0
- package/dist/{durable-DoG_e4iL.d.ts → durable-CKdCCqhw.d.ts} +54 -1
- package/dist/{event-factory-CKuWhjS4.js → event-factory-VAci3NJb.js} +2 -2
- package/dist/{event-factory-CKuWhjS4.js.map → event-factory-VAci3NJb.js.map} +1 -1
- package/dist/{events-sxIzJY26.d.ts → events-BWuvzVml.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/{model-resolver-BHYVHsam.d.ts → model-resolver-DUms5p6X.d.ts} +10 -4
- package/dist/{reduced-state-DrSHn_47.d.ts → reduced-state-BGd_yCBT.d.ts} +308 -45
- package/dist/{reduced-state-DFIYylAq.js → reduced-state-Vuud6LCM.js} +2 -2
- package/dist/reduced-state-Vuud6LCM.js.map +1 -0
- package/dist/{reduced-state-schema-CPEmuHLY.d.ts → reduced-state-schema-jyZWJ0QS.d.ts} +19 -1
- package/dist/{reducer-registry-C3ZidOI1.d.ts → reducer-registry-BIhncOHH.d.ts} +4 -4
- package/dist/{run-scheduling-wakeup-COUj3r_B.d.ts → run-scheduling-wakeup-BH2pHE0U.d.ts} +2 -2
- package/dist/services/compaction.d.ts +2 -2
- package/dist/services/compaction.js +2 -2
- package/dist/services/id-generator.js +1 -1
- package/dist/services/id-generator.js.map +1 -1
- package/dist/services/model-call.d.ts +15 -0
- package/dist/services/model-call.js +15 -0
- package/dist/services/model-call.js.map +1 -0
- package/dist/services/model-resolver.d.ts +1 -1
- package/dist/services/model-resolver.js +1 -1
- package/dist/services/model-resolver.js.map +1 -1
- package/dist/services/prompt-projector.d.ts +2 -2
- package/dist/services/prompt-projector.js +49 -5
- package/dist/services/prompt-projector.js.map +1 -1
- package/dist/services/reducer-registry.d.ts +1 -1
- package/dist/services/run-scheduler.d.ts +1 -1
- package/dist/services/run-scheduler.js +1 -1
- package/dist/services/run-scheduler.js.map +1 -1
- package/dist/services/run-scheduling-wakeup.d.ts +1 -1
- package/dist/services/runtime-layer.d.ts +12 -9
- package/dist/services/runtime-layer.js +10 -10
- package/dist/services/runtime-layer.js.map +1 -1
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +2 -2
- package/dist/services/session-event-observer.d.ts +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 +5 -5
- package/dist/services/session-store.js.map +1 -1
- 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/services/tool-registry.js +2 -2
- package/dist/services/tool-registry.js.map +1 -1
- package/dist/services/tracing.d.ts +1 -1
- package/dist/services/tracing.js +1 -1
- package/dist/{session-event-observer-BDwja1jX.d.ts → session-event-observer-BdZltdrK.d.ts} +2 -2
- package/dist/{session-state-BBzzJrDC.js → session-state-C_1XxhvE.js} +61 -27
- package/dist/session-state-C_1XxhvE.js.map +1 -0
- package/dist/{session-store-B_vh581h.d.ts → session-store-BpitF4Wg.d.ts} +3 -3
- package/dist/{sink-checkpoint-store-2SxoNMbI.d.ts → sink-checkpoint-store-C-SY0cG2.d.ts} +2 -2
- package/dist/{sink-registry-ogHu2Sw7.js → sink-registry-CjK5MC90.js} +4 -4
- package/dist/sink-registry-CjK5MC90.js.map +1 -0
- package/dist/testkit/layers.d.ts +10 -10
- package/dist/testkit/layers.js +13 -10
- package/dist/testkit/layers.js.map +1 -1
- package/dist/{tool-registry-DDxbmMpY.d.ts → tool-registry-wPsHagF_.d.ts} +5 -5
- package/dist/types/commands.js +1 -1
- package/dist/types/commands.js.map +1 -1
- package/dist/types/events/durable.d.ts +1 -1
- package/dist/types/events/durable.js +1 -1
- package/dist/types/events.d.ts +2 -2
- package/dist/types/events.js +1 -1
- package/dist/websocket.d.ts +9 -2
- package/dist/websocket.js +1 -1
- package/package.json +12 -8
- package/dist/compaction-Bell28K8.js.map +0 -1
- package/dist/durable-DRY7AcsF.js.map +0 -1
- package/dist/reduced-state-DFIYylAq.js.map +0 -1
- package/dist/session-state-BBzzJrDC.js.map +0 -1
- package/dist/sink-registry-ogHu2Sw7.js.map +0 -1
|
@@ -737,6 +737,7 @@ declare const AssistantPromptPart: Schema.Union<readonly [Schema.Struct<{
|
|
|
737
737
|
readonly name: Schema.String;
|
|
738
738
|
readonly isFailure: Schema.Boolean;
|
|
739
739
|
readonly result: Schema.Unknown;
|
|
740
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
740
741
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
741
742
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
742
743
|
}>, Schema.Struct<{
|
|
@@ -779,6 +780,7 @@ declare const AssistantPromptParts: Schema.NonEmptyArray<Schema.Union<readonly [
|
|
|
779
780
|
readonly name: Schema.String;
|
|
780
781
|
readonly isFailure: Schema.Boolean;
|
|
781
782
|
readonly result: Schema.Unknown;
|
|
783
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
782
784
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
783
785
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
784
786
|
}>, Schema.Struct<{
|
|
@@ -805,6 +807,7 @@ declare const ToolPromptPart: Schema.Struct<{
|
|
|
805
807
|
readonly type: Schema.Literal<"tool-result">;
|
|
806
808
|
readonly isFailure: Schema.Boolean;
|
|
807
809
|
readonly result: Schema.Unknown;
|
|
810
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
808
811
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
809
812
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
810
813
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -1329,6 +1332,7 @@ declare const AssistantMessageCommittedPayload: Schema.Struct<{
|
|
|
1329
1332
|
readonly name: Schema.String;
|
|
1330
1333
|
readonly isFailure: Schema.Boolean;
|
|
1331
1334
|
readonly result: Schema.Unknown;
|
|
1335
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
1332
1336
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1333
1337
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1334
1338
|
}>, Schema.Struct<{
|
|
@@ -1402,6 +1406,7 @@ declare const AssistantMessageCommittedEvent: Schema.Struct<{
|
|
|
1402
1406
|
readonly name: Schema.String;
|
|
1403
1407
|
readonly isFailure: Schema.Boolean;
|
|
1404
1408
|
readonly result: Schema.Unknown;
|
|
1409
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
1405
1410
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1406
1411
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1407
1412
|
}>, Schema.Struct<{
|
|
@@ -1451,6 +1456,7 @@ declare const AssistantMessageImportedPayload: Schema.Struct<{
|
|
|
1451
1456
|
readonly name: Schema.String;
|
|
1452
1457
|
readonly isFailure: Schema.Boolean;
|
|
1453
1458
|
readonly result: Schema.Unknown;
|
|
1459
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
1454
1460
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1455
1461
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1456
1462
|
}>, Schema.Struct<{
|
|
@@ -1524,6 +1530,7 @@ declare const AssistantMessageImportedEvent: Schema.Struct<{
|
|
|
1524
1530
|
readonly name: Schema.String;
|
|
1525
1531
|
readonly isFailure: Schema.Boolean;
|
|
1526
1532
|
readonly result: Schema.Unknown;
|
|
1533
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
1527
1534
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1528
1535
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1529
1536
|
}>, Schema.Struct<{
|
|
@@ -1573,6 +1580,7 @@ declare const AssistantPartialCommittedPayload: Schema.Struct<{
|
|
|
1573
1580
|
readonly name: Schema.String;
|
|
1574
1581
|
readonly isFailure: Schema.Boolean;
|
|
1575
1582
|
readonly result: Schema.Unknown;
|
|
1583
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
1576
1584
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1577
1585
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1578
1586
|
}>, Schema.Struct<{
|
|
@@ -1647,6 +1655,7 @@ declare const AssistantPartialCommittedEvent: Schema.Struct<{
|
|
|
1647
1655
|
readonly name: Schema.String;
|
|
1648
1656
|
readonly isFailure: Schema.Boolean;
|
|
1649
1657
|
readonly result: Schema.Unknown;
|
|
1658
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
1650
1659
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1651
1660
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1652
1661
|
}>, Schema.Struct<{
|
|
@@ -2062,6 +2071,7 @@ declare const MessageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
2062
2071
|
readonly name: Schema.String;
|
|
2063
2072
|
readonly isFailure: Schema.Boolean;
|
|
2064
2073
|
readonly result: Schema.Unknown;
|
|
2074
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
2065
2075
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
2066
2076
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
2067
2077
|
}>, Schema.Struct<{
|
|
@@ -2134,6 +2144,7 @@ declare const MessageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
2134
2144
|
readonly name: Schema.String;
|
|
2135
2145
|
readonly isFailure: Schema.Boolean;
|
|
2136
2146
|
readonly result: Schema.Unknown;
|
|
2147
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
2137
2148
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
2138
2149
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
2139
2150
|
}>, Schema.Struct<{
|
|
@@ -2206,6 +2217,7 @@ declare const MessageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
2206
2217
|
readonly name: Schema.String;
|
|
2207
2218
|
readonly isFailure: Schema.Boolean;
|
|
2208
2219
|
readonly result: Schema.Unknown;
|
|
2220
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
2209
2221
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
2210
2222
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
2211
2223
|
}>, Schema.Struct<{
|
|
@@ -3289,6 +3301,7 @@ type ToolCallRejectionFeedback = typeof ToolCallRejectionFeedback.Type;
|
|
|
3289
3301
|
/** Exact prompt part for a rejected model-requested tool call. */
|
|
3290
3302
|
declare const ToolRejectionPromptPart: Schema.Struct<{
|
|
3291
3303
|
readonly type: Schema.Literal<"tool-result">;
|
|
3304
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3292
3305
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3293
3306
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3294
3307
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -3304,6 +3317,7 @@ type ToolRejectionPromptPart = typeof ToolRejectionPromptPart.Type;
|
|
|
3304
3317
|
/** Exact prompt part for a successful framework-owned tool result. */
|
|
3305
3318
|
declare const ToolSuccessPromptPart: Schema.Struct<{
|
|
3306
3319
|
readonly type: Schema.Literal<"tool-result">;
|
|
3320
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3307
3321
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3308
3322
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3309
3323
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -3315,6 +3329,7 @@ type ToolSuccessPromptPart = typeof ToolSuccessPromptPart.Type;
|
|
|
3315
3329
|
/** Exact prompt part for a failed framework-owned tool result. */
|
|
3316
3330
|
declare const ToolFailurePromptPart: Schema.Struct<{
|
|
3317
3331
|
readonly type: Schema.Literal<"tool-result">;
|
|
3332
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3318
3333
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3319
3334
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3320
3335
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -3395,6 +3410,7 @@ declare const ToolCallRejectedPayload: Schema.Struct<{
|
|
|
3395
3410
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
3396
3411
|
readonly promptPart: Schema.Struct<{
|
|
3397
3412
|
readonly type: Schema.Literal<"tool-result">;
|
|
3413
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3398
3414
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3399
3415
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3400
3416
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -3441,6 +3457,7 @@ declare const ToolCallRejectedEvent: Schema.Struct<{
|
|
|
3441
3457
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
3442
3458
|
readonly promptPart: Schema.Struct<{
|
|
3443
3459
|
readonly type: Schema.Literal<"tool-result">;
|
|
3460
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3444
3461
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3445
3462
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3446
3463
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -3496,6 +3513,7 @@ declare const ToolCallCompletedPayload: Schema.Struct<{
|
|
|
3496
3513
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
3497
3514
|
readonly promptPart: Schema.Struct<{
|
|
3498
3515
|
readonly type: Schema.Literal<"tool-result">;
|
|
3516
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3499
3517
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3500
3518
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3501
3519
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -3535,6 +3553,7 @@ declare const ToolCallCompletedEvent: Schema.Struct<{
|
|
|
3535
3553
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
3536
3554
|
readonly promptPart: Schema.Struct<{
|
|
3537
3555
|
readonly type: Schema.Literal<"tool-result">;
|
|
3556
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3538
3557
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3539
3558
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3540
3559
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -3555,6 +3574,7 @@ declare const ToolCallFailedPayload: Schema.Struct<{
|
|
|
3555
3574
|
}>>;
|
|
3556
3575
|
readonly promptPart: Schema.Struct<{
|
|
3557
3576
|
readonly type: Schema.Literal<"tool-result">;
|
|
3577
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3558
3578
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3559
3579
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3560
3580
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -3603,6 +3623,7 @@ declare const ToolCallFailedEvent: Schema.Struct<{
|
|
|
3603
3623
|
}>>;
|
|
3604
3624
|
readonly promptPart: Schema.Struct<{
|
|
3605
3625
|
readonly type: Schema.Literal<"tool-result">;
|
|
3626
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3606
3627
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3607
3628
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3608
3629
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -3692,6 +3713,7 @@ declare const ToolCallEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
3692
3713
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
3693
3714
|
readonly promptPart: Schema.Struct<{
|
|
3694
3715
|
readonly type: Schema.Literal<"tool-result">;
|
|
3716
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3695
3717
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3696
3718
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3697
3719
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -3763,6 +3785,7 @@ declare const ToolCallEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
3763
3785
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
3764
3786
|
readonly promptPart: Schema.Struct<{
|
|
3765
3787
|
readonly type: Schema.Literal<"tool-result">;
|
|
3788
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3766
3789
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3767
3790
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3768
3791
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -3806,6 +3829,7 @@ declare const ToolCallEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
3806
3829
|
}>>;
|
|
3807
3830
|
readonly promptPart: Schema.Struct<{
|
|
3808
3831
|
readonly type: Schema.Literal<"tool-result">;
|
|
3832
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
3809
3833
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
3810
3834
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
3811
3835
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -4923,6 +4947,7 @@ declare const LegacyAssistantMessageCommittedEvent: Schema.Struct<{
|
|
|
4923
4947
|
readonly name: Schema.String;
|
|
4924
4948
|
readonly isFailure: Schema.Boolean;
|
|
4925
4949
|
readonly result: Schema.Unknown;
|
|
4950
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
4926
4951
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
4927
4952
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
4928
4953
|
}>, Schema.Struct<{
|
|
@@ -5113,6 +5138,7 @@ declare const LegacyAttemptEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
5113
5138
|
readonly name: Schema.String;
|
|
5114
5139
|
readonly isFailure: Schema.Boolean;
|
|
5115
5140
|
readonly result: Schema.Unknown;
|
|
5141
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
5116
5142
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5117
5143
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5118
5144
|
}>, Schema.Struct<{
|
|
@@ -5882,6 +5908,7 @@ declare const CurrentEDADurableEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
5882
5908
|
readonly name: Schema.String;
|
|
5883
5909
|
readonly isFailure: Schema.Boolean;
|
|
5884
5910
|
readonly result: Schema.Unknown;
|
|
5911
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
5885
5912
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5886
5913
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5887
5914
|
}>, Schema.Struct<{
|
|
@@ -5954,6 +5981,7 @@ declare const CurrentEDADurableEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
5954
5981
|
readonly name: Schema.String;
|
|
5955
5982
|
readonly isFailure: Schema.Boolean;
|
|
5956
5983
|
readonly result: Schema.Unknown;
|
|
5984
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
5957
5985
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5958
5986
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5959
5987
|
}>, Schema.Struct<{
|
|
@@ -6026,6 +6054,7 @@ declare const CurrentEDADurableEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
6026
6054
|
readonly name: Schema.String;
|
|
6027
6055
|
readonly isFailure: Schema.Boolean;
|
|
6028
6056
|
readonly result: Schema.Unknown;
|
|
6057
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
6029
6058
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
6030
6059
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
6031
6060
|
}>, Schema.Struct<{
|
|
@@ -6534,6 +6563,7 @@ declare const CurrentEDADurableEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
6534
6563
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
6535
6564
|
readonly promptPart: Schema.Struct<{
|
|
6536
6565
|
readonly type: Schema.Literal<"tool-result">;
|
|
6566
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
6537
6567
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
6538
6568
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
6539
6569
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -6605,6 +6635,7 @@ declare const CurrentEDADurableEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
6605
6635
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
6606
6636
|
readonly promptPart: Schema.Struct<{
|
|
6607
6637
|
readonly type: Schema.Literal<"tool-result">;
|
|
6638
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
6608
6639
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
6609
6640
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
6610
6641
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -6648,6 +6679,7 @@ declare const CurrentEDADurableEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
6648
6679
|
}>>;
|
|
6649
6680
|
readonly promptPart: Schema.Struct<{
|
|
6650
6681
|
readonly type: Schema.Literal<"tool-result">;
|
|
6682
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
6651
6683
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
6652
6684
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
6653
6685
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -7199,6 +7231,7 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
7199
7231
|
readonly name: Schema.String;
|
|
7200
7232
|
readonly isFailure: Schema.Boolean;
|
|
7201
7233
|
readonly result: Schema.Unknown;
|
|
7234
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
7202
7235
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7203
7236
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7204
7237
|
}>, Schema.Struct<{
|
|
@@ -7960,6 +7993,7 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
7960
7993
|
readonly name: Schema.String;
|
|
7961
7994
|
readonly isFailure: Schema.Boolean;
|
|
7962
7995
|
readonly result: Schema.Unknown;
|
|
7996
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
7963
7997
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7964
7998
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7965
7999
|
}>, Schema.Struct<{
|
|
@@ -8032,6 +8066,7 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
8032
8066
|
readonly name: Schema.String;
|
|
8033
8067
|
readonly isFailure: Schema.Boolean;
|
|
8034
8068
|
readonly result: Schema.Unknown;
|
|
8069
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
8035
8070
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
8036
8071
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
8037
8072
|
}>, Schema.Struct<{
|
|
@@ -8104,6 +8139,7 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
8104
8139
|
readonly name: Schema.String;
|
|
8105
8140
|
readonly isFailure: Schema.Boolean;
|
|
8106
8141
|
readonly result: Schema.Unknown;
|
|
8142
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
8107
8143
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
8108
8144
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
8109
8145
|
}>, Schema.Struct<{
|
|
@@ -8612,6 +8648,7 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
8612
8648
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
8613
8649
|
readonly promptPart: Schema.Struct<{
|
|
8614
8650
|
readonly type: Schema.Literal<"tool-result">;
|
|
8651
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
8615
8652
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
8616
8653
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
8617
8654
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -8683,6 +8720,7 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
8683
8720
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
8684
8721
|
readonly promptPart: Schema.Struct<{
|
|
8685
8722
|
readonly type: Schema.Literal<"tool-result">;
|
|
8723
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
8686
8724
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
8687
8725
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
8688
8726
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -8726,6 +8764,7 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
8726
8764
|
}>>;
|
|
8727
8765
|
readonly promptPart: Schema.Struct<{
|
|
8728
8766
|
readonly type: Schema.Literal<"tool-result">;
|
|
8767
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
8729
8768
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
8730
8769
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
8731
8770
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -9277,6 +9316,7 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
9277
9316
|
readonly name: Schema.String;
|
|
9278
9317
|
readonly isFailure: Schema.Boolean;
|
|
9279
9318
|
readonly result: Schema.Unknown;
|
|
9319
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
9280
9320
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
9281
9321
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
9282
9322
|
}>, Schema.Struct<{
|
|
@@ -10038,6 +10078,7 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
10038
10078
|
readonly name: Schema.String;
|
|
10039
10079
|
readonly isFailure: Schema.Boolean;
|
|
10040
10080
|
readonly result: Schema.Unknown;
|
|
10081
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
10041
10082
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
10042
10083
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
10043
10084
|
}>, Schema.Struct<{
|
|
@@ -10110,6 +10151,7 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
10110
10151
|
readonly name: Schema.String;
|
|
10111
10152
|
readonly isFailure: Schema.Boolean;
|
|
10112
10153
|
readonly result: Schema.Unknown;
|
|
10154
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
10113
10155
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
10114
10156
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
10115
10157
|
}>, Schema.Struct<{
|
|
@@ -10182,6 +10224,7 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
10182
10224
|
readonly name: Schema.String;
|
|
10183
10225
|
readonly isFailure: Schema.Boolean;
|
|
10184
10226
|
readonly result: Schema.Unknown;
|
|
10227
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
10185
10228
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
10186
10229
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
10187
10230
|
}>, Schema.Struct<{
|
|
@@ -10690,6 +10733,7 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
10690
10733
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
10691
10734
|
readonly promptPart: Schema.Struct<{
|
|
10692
10735
|
readonly type: Schema.Literal<"tool-result">;
|
|
10736
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
10693
10737
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
10694
10738
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
10695
10739
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -10761,6 +10805,7 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
10761
10805
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
10762
10806
|
readonly promptPart: Schema.Struct<{
|
|
10763
10807
|
readonly type: Schema.Literal<"tool-result">;
|
|
10808
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
10764
10809
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
10765
10810
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
10766
10811
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -10804,6 +10849,7 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
10804
10849
|
}>>;
|
|
10805
10850
|
readonly promptPart: Schema.Struct<{
|
|
10806
10851
|
readonly type: Schema.Literal<"tool-result">;
|
|
10852
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
10807
10853
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
10808
10854
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
10809
10855
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -11359,6 +11405,7 @@ declare const DecodedDurableEvent: Schema.Union<readonly [Schema.Union<readonly
|
|
|
11359
11405
|
readonly name: Schema.String;
|
|
11360
11406
|
readonly isFailure: Schema.Boolean;
|
|
11361
11407
|
readonly result: Schema.Unknown;
|
|
11408
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
11362
11409
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
11363
11410
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
11364
11411
|
}>, Schema.Struct<{
|
|
@@ -12120,6 +12167,7 @@ declare const DecodedDurableEvent: Schema.Union<readonly [Schema.Union<readonly
|
|
|
12120
12167
|
readonly name: Schema.String;
|
|
12121
12168
|
readonly isFailure: Schema.Boolean;
|
|
12122
12169
|
readonly result: Schema.Unknown;
|
|
12170
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
12123
12171
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
12124
12172
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
12125
12173
|
}>, Schema.Struct<{
|
|
@@ -12192,6 +12240,7 @@ declare const DecodedDurableEvent: Schema.Union<readonly [Schema.Union<readonly
|
|
|
12192
12240
|
readonly name: Schema.String;
|
|
12193
12241
|
readonly isFailure: Schema.Boolean;
|
|
12194
12242
|
readonly result: Schema.Unknown;
|
|
12243
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
12195
12244
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
12196
12245
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
12197
12246
|
}>, Schema.Struct<{
|
|
@@ -12264,6 +12313,7 @@ declare const DecodedDurableEvent: Schema.Union<readonly [Schema.Union<readonly
|
|
|
12264
12313
|
readonly name: Schema.String;
|
|
12265
12314
|
readonly isFailure: Schema.Boolean;
|
|
12266
12315
|
readonly result: Schema.Unknown;
|
|
12316
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
12267
12317
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
12268
12318
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
12269
12319
|
}>, Schema.Struct<{
|
|
@@ -12772,6 +12822,7 @@ declare const DecodedDurableEvent: Schema.Union<readonly [Schema.Union<readonly
|
|
|
12772
12822
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
12773
12823
|
readonly promptPart: Schema.Struct<{
|
|
12774
12824
|
readonly type: Schema.Literal<"tool-result">;
|
|
12825
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
12775
12826
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
12776
12827
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
12777
12828
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -12843,6 +12894,7 @@ declare const DecodedDurableEvent: Schema.Union<readonly [Schema.Union<readonly
|
|
|
12843
12894
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
12844
12895
|
readonly promptPart: Schema.Struct<{
|
|
12845
12896
|
readonly type: Schema.Literal<"tool-result">;
|
|
12897
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
12846
12898
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
12847
12899
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
12848
12900
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -12886,6 +12938,7 @@ declare const DecodedDurableEvent: Schema.Union<readonly [Schema.Union<readonly
|
|
|
12886
12938
|
}>>;
|
|
12887
12939
|
readonly promptPart: Schema.Struct<{
|
|
12888
12940
|
readonly type: Schema.Literal<"tool-result">;
|
|
12941
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
12889
12942
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
12890
12943
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
12891
12944
|
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
@@ -13364,4 +13417,4 @@ declare const durableEventEnvelope: (event: DecodedDurableEvent | DurableEventEn
|
|
|
13364
13417
|
declare const decodeDurableEventSync: (input: unknown) => DecodedDurableEvent;
|
|
13365
13418
|
//#endregion
|
|
13366
13419
|
export { LegacyAttemptEvent as $, pendingMessagesPausedEventType as $n, ToolCallRejectedPayload as $t, CompactionFailedEvent as A, baseStateCreatedEventType as An, SessionConfiguredEvent as At, ContextRebasedPayload as B, compactionRequestedEventType as Bn, SummaryCreatedEvent as Bt, CommandEvent as C, UserMessagePromotedEvent as Cn, turnStartedEventType as Cr, RunSchedulingGrantedPayload as Ct, CommandStartedPayload as D, assistantMessageCommittedEventType as Dn, userMessagePromotedEventType as Dr, RunSchedulingRequestedPayload as Dt, CommandStartedEvent as E, UserMessageSubmittedPayload as En, userMessageCommittedEventType as Er, RunSchedulingRequestedEvent as Et, CompactionStartedPayload as F, commandCompletedEventType as Fn, StopControlEvent as Ft, InferenceCompletedEvent as G, decodeUnknownEDADurableEvent as Gn, ToolCallCompletedPayload as Gt, DecodedDurableEvent as H, contextProjectedEventType as Hn, SystemMessageCommittedEvent as Ht, ContextAndCompactionEvent as I, commandFailedEventType as In, StopTurnAppliedEvent as It, InferenceFailedEvent as J, inferenceCompletedEventType as Jn, ToolCallEvent as Jt, InferenceCompletedPayload as K, decodeUnknownEDADurableEventSync as Kn, ToolCallCreatedEvent as Kt, ContextProjectedEvent as L, commandStartedEventType as Ln, StopTurnAppliedPayload as Lt, CompactionRequestedEvent as M, baseStateRequestedEventType as Mn, SteeringMessageCancelledPayload as Mt, CompactionRequestedPayload as N, commandAdmittedEventType as Nn, SteeringMessageQueuedEvent as Nt, CompactionCompletedEvent as O, assistantMessageImportedEventType as On, userMessageSubmittedEventType as Or, RunStartedEvent as Ot, CompactionStartedEvent as P, commandCancelledEventType as Pn, SteeringMessageQueuedPayload as Pt, LegacyAssistantMessageCommittedEvent as Q, messageQueuePausedEventType as Qn, ToolCallRejectedEvent as Qt, ContextProjectedPayload as R, compactionCompletedEventType as Rn, StopTurnRequestedEvent as Rt, CommandCompletedPayload as S, UserMessageDisposition as Sn, turnFailedEventType as Sr, RunSchedulingGrantedEvent as St, CommandFailedPayload as T, UserMessageSubmittedEvent as Tn, userMessageCancelledEventType as Tr, RunSchedulingInvalidatedPayload as Tt, EDADurableEvent as U, contextRebasedEventType as Un, SystemMessageCommittedPayload as Ut, CurrentEDADurableEvent as V, compactionStartedEventType as Vn, SummaryCreatedPayload as Vt, EDADurableEventV1 as W, decodeDurableEventSync as Wn, ToolCallCompletedEvent as Wt, InferenceStartedEvent as X, inferenceStartedEventType as Xn, ToolCallFailedPayload as Xt, InferenceFailedPayload as Y, inferenceFailedEventType as Yn, ToolCallFailedEvent as Yt, InferenceStartedPayload as Z, interpretLegacyAttemptForReduction as Zn, ToolCallPromptPart as Zt, CommandAdmittedEvent as _, UserMessageCancellationReason as _n, toolCallCreatedEventType as _r, RunInterruptedEvent as _t, AssistantMessageImportedPayload as a, ToolPromptPart as an, runSchedulingGrantedEventType as ar, MessageQueuePausedPayload as at, CommandCancelledPayload as b, UserMessageCommittedEvent as bn, toolCallStartedEventType as br, RunSchedulingDeliveredPayload as bt, AssistantPromptPart as c, TurnCompletedEvent as cn, runStartedEventType as cr, RecoveryCompletedEvent as ct, BaseStateCreatedPayload as d, TurnFailedEvent as dn, steeringMessageQueuedEventType as dr, RecoveryEvent as dt, ToolCallRejectionFeedback as en, recoveryCompletedEventType as er, LegacyToolCallCreatedEvent as et, BaseStateEvent as f, TurnFailedPayload as fn, stopTurnAppliedEventType as fr, RunCompletedEvent as ft, BaseStateRequestedPayload as g, TurnStoppedPayload as gn, toolCallCompletedEventType as gr, RunFailedPayload as gt, BaseStateRequestedEvent as h, TurnStoppedEvent as hn, systemMessageCommittedEventType as hr, RunFailedEvent as ht, AssistantMessageImportedEvent as i, ToolFailurePromptPart as in, runSchedulingDeliveredEventType as ir, MessageQueuePausedEvent as it, CompactionFailedPayload as j, baseStateFailedEventType as jn, SteeringMessageCancelledEvent as jt, CompactionCompletedPayload as k, assistantPartialCommittedEventType as kn, RunStartedPayload as kt, AssistantPromptParts as l, TurnCompletedPayload as ln, sessionConfiguredEventType as lr, RecoveryCompletedPayload as lt, BaseStateFailedPayload as m, TurnStartedPayload as mn, summaryCreatedEventType as mr, RunEvent as mt, AssistantMessageCommittedPayload as n, ToolCallStartedEvent as nn, runFailedEventType as nr, LegacyTurnAttemptStartedEvent as nt, AssistantPartialCommittedEvent as o, ToolRejectionPromptPart as on, runSchedulingInvalidatedEventType as or, PendingMessagesPausedEvent as ot, BaseStateFailedEvent as p, TurnStartedEvent as pn, stopTurnRequestedEventType as pr, RunCompletedPayload as pt, InferenceEvent as q, durableEventEnvelope as qn, ToolCallCreatedPayload as qt, AssistantMessageContent as r, ToolCallStartedPayload as rn, runInterruptedEventType as rr, MessageEvent as rt, AssistantPartialCommittedPayload as s, ToolSuccessPromptPart as sn, runSchedulingRequestedEventType as sr, PendingMessagesPausedPayload as st, AssistantMessageCommittedEvent as t, ToolCallRejectionReason as tn, runCompletedEventType as tr, LegacyTurnAttemptCompletedEvent as tt, BaseStateCreatedEvent as u, TurnEvent as un, steeringMessageCancelledEventType as ur, RecoveryContinuation as ut, CommandAdmittedPayload as v, UserMessageCancelledEvent as vn, toolCallFailedEventType as vr, RunInterruptedPayload as vt, CommandFailedEvent as w, UserMessagePromotedPayload as wn, turnStoppedEventType as wr, RunSchedulingInvalidatedEvent as wt, CommandCompletedEvent as x, UserMessageCommittedPayload as xn, turnCompletedEventType as xr, RunSchedulingEvent as xt, CommandCancelledEvent as y, UserMessageCancelledPayload as yn, toolCallRejectedEventType as yr, RunSchedulingDeliveredEvent as yt, ContextRebasedEvent as z, compactionFailedEventType as zn, StopTurnRequestedPayload as zt };
|
|
13367
|
-
//# sourceMappingURL=durable-
|
|
13420
|
+
//# sourceMappingURL=durable-CKdCCqhw.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as schemaV1, g as UnixEpochMillis, v as effectDurableAgentNamespace } from "./envelope-BCzKUq_z.js";
|
|
2
|
-
import { $n as pendingMessagesPausedEventType, A as CompactionFailedEvent, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, E as CommandStartedEvent, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, Fn as commandCompletedEventType, G as InferenceCompletedEvent, Ht as SystemMessageCommittedEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Kt as ToolCallCreatedEvent, Ln as commandStartedEventType, M as CompactionRequestedEvent, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Qt as ToolCallRejectedEvent, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Un as contextRebasedEventType, Vn as compactionStartedEventType, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, _ as CommandAdmittedEvent, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, ar as runSchedulingGrantedEventType, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, er as recoveryCompletedEventType, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, gr as toolCallCompletedEventType, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, ir as runSchedulingDeliveredEventType, jt as SteeringMessageCancelledEvent, kn as assistantPartialCommittedEventType, mr as summaryCreatedEventType, nn as ToolCallStartedEvent, nr as runFailedEventType, o as AssistantPartialCommittedEvent, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, rr as runInterruptedEventType, sr as runSchedulingRequestedEventType, t as AssistantMessageCommittedEvent, tr as runCompletedEventType, ur as steeringMessageCancelledEventType, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, w as CommandFailedEvent, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xr as turnCompletedEventType, y as CommandCancelledEvent, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType } from "./durable-
|
|
2
|
+
import { $n as pendingMessagesPausedEventType, A as CompactionFailedEvent, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, E as CommandStartedEvent, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, Fn as commandCompletedEventType, G as InferenceCompletedEvent, Ht as SystemMessageCommittedEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Kt as ToolCallCreatedEvent, Ln as commandStartedEventType, M as CompactionRequestedEvent, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Qt as ToolCallRejectedEvent, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Un as contextRebasedEventType, Vn as compactionStartedEventType, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, _ as CommandAdmittedEvent, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, ar as runSchedulingGrantedEventType, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, er as recoveryCompletedEventType, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, gr as toolCallCompletedEventType, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, ir as runSchedulingDeliveredEventType, jt as SteeringMessageCancelledEvent, kn as assistantPartialCommittedEventType, mr as summaryCreatedEventType, nn as ToolCallStartedEvent, nr as runFailedEventType, o as AssistantPartialCommittedEvent, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, rr as runInterruptedEventType, sr as runSchedulingRequestedEventType, t as AssistantMessageCommittedEvent, tr as runCompletedEventType, ur as steeringMessageCancelledEventType, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, w as CommandFailedEvent, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xr as turnCompletedEventType, y as CommandCancelledEvent, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType } from "./durable-CD__3ztN.js";
|
|
3
3
|
import { ReasoningDeltaEvent, TextDeltaEvent, ToolParamsDeltaEvent, ToolParamsEndEvent, ToolParamsStartEvent, reasoningDeltaEventType, textDeltaEventType, toolParamsDeltaEventType, toolParamsEndEventType, toolParamsStartEventType } from "./types/events.js";
|
|
4
4
|
import { IdGenerator } from "./services/id-generator.js";
|
|
5
5
|
import { currentOrRootEDAEventTrace } from "./services/tracing.js";
|
|
@@ -104,4 +104,4 @@ var EventFactory = class EventFactory extends Context.Service()("@effect-durable
|
|
|
104
104
|
//#endregion
|
|
105
105
|
export { SessionContext as n, EventFactory as t };
|
|
106
106
|
|
|
107
|
-
//# sourceMappingURL=event-factory-
|
|
107
|
+
//# sourceMappingURL=event-factory-VAci3NJb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-factory-CKuWhjS4.js","names":[],"sources":["../src/services/session-context.ts","../src/services/event-factory.ts"],"sourcesContent":["import * as Context from \"effect/Context\";\nimport * as Layer from \"effect/Layer\";\n\nimport { SessionId } from \"../types/core\";\n\n/** Runtime-scoped session identity dependency. */\nexport interface SessionContextShape {\n /** The one session this runtime instance owns; fixed for the runtime lifetime. */\n readonly sessionId: SessionId;\n}\n\n/**\n * Identity of the session a runtime instance is bound to. One runtime = one\n * session, so services read the session here instead of threading `sessionId`\n * through every input struct.\n */\nexport class SessionContext extends Context.Service<SessionContext, SessionContextShape>()(\n \"@effect-durable-agent/SessionContext\",\n) {\n static readonly Live = (sessionId: SessionId) => Layer.succeed(SessionContext, { sessionId });\n}\n","import * as Clock from \"effect/Clock\";\nimport * as Context from \"effect/Context\";\nimport * as Effect from \"effect/Effect\";\nimport * as Layer from \"effect/Layer\";\n\nimport {\n CommandAdmittedEvent,\n CommandAdmittedPayload,\n CommandCancelledEvent,\n CommandCancelledPayload,\n CommandCompletedEvent,\n CommandCompletedPayload,\n CommandFailedEvent,\n CommandFailedPayload,\n CommandStartedEvent,\n CommandStartedPayload,\n CompactionCompletedEvent,\n CompactionCompletedPayload,\n CompactionFailedEvent,\n CompactionFailedPayload,\n CompactionRequestedEvent,\n CompactionRequestedPayload,\n CompactionStartedEvent,\n CompactionStartedPayload,\n ContextRebasedEvent,\n ContextRebasedPayload,\n AssistantMessageCommittedEvent,\n AssistantMessageCommittedPayload,\n AssistantPartialCommittedEvent,\n AssistantPartialCommittedPayload,\n EventType,\n InferenceCompletedEvent,\n InferenceCompletedPayload,\n InferenceFailedEvent,\n InferenceFailedPayload,\n InferenceStartedEvent,\n InferenceStartedPayload,\n SummaryCreatedEvent,\n SummaryCreatedPayload,\n SystemMessageCommittedEvent,\n SystemMessageCommittedPayload,\n ReasoningDeltaEvent,\n ReasoningDeltaPayload,\n RecoveryCompletedEvent,\n RecoveryCompletedPayload,\n RunCompletedEvent,\n RunCompletedPayload,\n RunFailedEvent,\n RunFailedPayload,\n RunInterruptedEvent,\n RunInterruptedPayload,\n RunSchedulingRequestedEvent,\n RunSchedulingRequestedPayload,\n runSchedulingRequestedEventType,\n RunSchedulingDeliveredEvent,\n RunSchedulingDeliveredPayload,\n runSchedulingDeliveredEventType,\n RunSchedulingInvalidatedEvent,\n RunSchedulingInvalidatedPayload,\n runSchedulingInvalidatedEventType,\n RunSchedulingGrantedEvent,\n RunSchedulingGrantedPayload,\n runSchedulingGrantedEventType,\n RunStartedEvent,\n RunStartedPayload,\n StopTurnAppliedEvent,\n StopTurnAppliedPayload,\n StopTurnRequestedEvent,\n StopTurnRequestedPayload,\n SteeringMessageCancelledEvent,\n SteeringMessageCancelledPayload,\n SteeringMessageQueuedEvent,\n SteeringMessageQueuedPayload,\n TextDeltaEvent,\n TextDeltaPayload,\n ToolCallCompletedEvent,\n ToolCallCompletedPayload,\n ToolCallCreatedEvent,\n ToolCallCreatedPayload,\n ToolCallFailedEvent,\n ToolCallFailedPayload,\n ToolCallRejectedEvent,\n ToolCallRejectedPayload,\n ToolCallStartedEvent,\n ToolCallStartedPayload,\n ToolParamsDeltaEvent,\n ToolParamsDeltaPayload,\n ToolParamsEndEvent,\n ToolParamsEndPayload,\n ToolParamsStartEvent,\n ToolParamsStartPayload,\n TurnCompletedEvent,\n TurnCompletedPayload,\n TurnFailedEvent,\n TurnFailedPayload,\n TurnStartedEvent,\n TurnStartedPayload,\n TurnStoppedEvent,\n TurnStoppedPayload,\n UnixEpochMillis,\n UserMessageCommittedEvent,\n UserMessageCommittedPayload,\n UserMessageSubmittedEvent,\n UserMessageSubmittedPayload,\n UserMessagePromotedEvent,\n UserMessagePromotedPayload,\n UserMessageCancelledEvent,\n UserMessageCancelledPayload,\n PendingMessagesPausedEvent,\n PendingMessagesPausedPayload,\n commandAdmittedEventType,\n commandCancelledEventType,\n commandCompletedEventType,\n commandFailedEventType,\n commandStartedEventType,\n compactionCompletedEventType,\n compactionFailedEventType,\n compactionRequestedEventType,\n compactionStartedEventType,\n contextRebasedEventType,\n assistantMessageCommittedEventType,\n assistantPartialCommittedEventType,\n effectDurableAgentNamespace,\n inferenceCompletedEventType,\n inferenceFailedEventType,\n inferenceStartedEventType,\n reasoningDeltaEventType,\n recoveryCompletedEventType,\n runCompletedEventType,\n runFailedEventType,\n runInterruptedEventType,\n runStartedEventType,\n schemaV1,\n steeringMessageCancelledEventType,\n summaryCreatedEventType,\n systemMessageCommittedEventType,\n steeringMessageQueuedEventType,\n stopTurnAppliedEventType,\n stopTurnRequestedEventType,\n textDeltaEventType,\n toolCallCompletedEventType,\n toolCallCreatedEventType,\n toolCallFailedEventType,\n toolCallRejectedEventType,\n toolCallStartedEventType,\n toolParamsDeltaEventType,\n toolParamsEndEventType,\n toolParamsStartEventType,\n turnCompletedEventType,\n turnFailedEventType,\n turnStartedEventType,\n turnStoppedEventType,\n userMessageCommittedEventType,\n userMessageSubmittedEventType,\n userMessagePromotedEventType,\n userMessageCancelledEventType,\n pendingMessagesPausedEventType,\n} from \"../types/events\";\nimport { IdGenerator } from \"./id-generator\";\nimport { SessionContext } from \"./session-context\";\nimport { currentOrRootEDAEventTrace } from \"./tracing\";\n\n/** Central envelope factory that stamps session id, event id, and current clock time. */\nexport interface EventFactoryShape {\n // Durable lifecycle events.\n readonly commandAdmitted: (\n payload: CommandAdmittedPayload,\n ) => Effect.Effect<CommandAdmittedEvent>;\n readonly commandStarted: (payload: CommandStartedPayload) => Effect.Effect<CommandStartedEvent>;\n readonly commandCompleted: (\n payload: CommandCompletedPayload,\n ) => Effect.Effect<CommandCompletedEvent>;\n readonly commandFailed: (payload: CommandFailedPayload) => Effect.Effect<CommandFailedEvent>;\n readonly commandCancelled: (\n payload: CommandCancelledPayload,\n ) => Effect.Effect<CommandCancelledEvent>;\n readonly systemMessageCommitted: (\n payload: SystemMessageCommittedPayload,\n ) => Effect.Effect<SystemMessageCommittedEvent>;\n readonly userMessageCommitted: (\n payload: UserMessageCommittedPayload,\n ) => Effect.Effect<UserMessageCommittedEvent>;\n readonly userMessageSubmitted: (\n payload: UserMessageSubmittedPayload,\n ) => Effect.Effect<UserMessageSubmittedEvent>;\n readonly userMessagePromoted: (\n payload: UserMessagePromotedPayload,\n ) => Effect.Effect<UserMessagePromotedEvent>;\n readonly userMessageCancelled: (\n payload: UserMessageCancelledPayload,\n ) => Effect.Effect<UserMessageCancelledEvent>;\n readonly pendingMessagesPaused: (\n payload: PendingMessagesPausedPayload,\n ) => Effect.Effect<PendingMessagesPausedEvent>;\n readonly steeringMessageQueued: (\n payload: SteeringMessageQueuedPayload,\n ) => Effect.Effect<SteeringMessageQueuedEvent>;\n readonly steeringMessageCancelled: (\n payload: SteeringMessageCancelledPayload,\n ) => Effect.Effect<SteeringMessageCancelledEvent>;\n readonly assistantMessageCommitted: (\n payload: AssistantMessageCommittedPayload,\n ) => Effect.Effect<AssistantMessageCommittedEvent>;\n readonly assistantPartialCommitted: (\n payload: AssistantPartialCommittedPayload,\n ) => Effect.Effect<AssistantPartialCommittedEvent>;\n readonly runSchedulingRequested: (\n payload: RunSchedulingRequestedPayload,\n ) => Effect.Effect<RunSchedulingRequestedEvent>;\n readonly runSchedulingDelivered: (\n payload: RunSchedulingDeliveredPayload,\n ) => Effect.Effect<RunSchedulingDeliveredEvent>;\n readonly runSchedulingInvalidated: (\n payload: RunSchedulingInvalidatedPayload,\n ) => Effect.Effect<RunSchedulingInvalidatedEvent>;\n readonly runSchedulingGranted: (\n payload: RunSchedulingGrantedPayload,\n ) => Effect.Effect<RunSchedulingGrantedEvent>;\n readonly runStarted: (payload: RunStartedPayload) => Effect.Effect<RunStartedEvent>;\n readonly runCompleted: (payload: RunCompletedPayload) => Effect.Effect<RunCompletedEvent>;\n readonly runFailed: (payload: RunFailedPayload) => Effect.Effect<RunFailedEvent>;\n readonly recoveryCompleted: (\n payload: RecoveryCompletedPayload,\n ) => Effect.Effect<RecoveryCompletedEvent>;\n /** @deprecated Emit `runFailed` with `error.code = \"run.interrupted\"`. Retained for legacy event construction only. */\n readonly runInterrupted: (payload: RunInterruptedPayload) => Effect.Effect<RunInterruptedEvent>;\n readonly turnStarted: (payload: TurnStartedPayload) => Effect.Effect<TurnStartedEvent>;\n readonly turnCompleted: (payload: TurnCompletedPayload) => Effect.Effect<TurnCompletedEvent>;\n readonly turnFailed: (payload: TurnFailedPayload) => Effect.Effect<TurnFailedEvent>;\n /** @deprecated Emit `turnFailed` with `error.code = \"turn.interrupted\"`. Retained for legacy event construction only. */\n readonly turnStopped: (payload: TurnStoppedPayload) => Effect.Effect<TurnStoppedEvent>;\n readonly inferenceStarted: (\n payload: InferenceStartedPayload,\n ) => Effect.Effect<InferenceStartedEvent>;\n readonly inferenceCompleted: (\n payload: InferenceCompletedPayload,\n ) => Effect.Effect<InferenceCompletedEvent>;\n readonly inferenceFailed: (\n payload: InferenceFailedPayload,\n ) => Effect.Effect<InferenceFailedEvent>;\n readonly toolCallCreated: (\n payload: ToolCallCreatedPayload,\n ) => Effect.Effect<ToolCallCreatedEvent>;\n readonly toolCallRejected: (\n payload: ToolCallRejectedPayload,\n ) => Effect.Effect<ToolCallRejectedEvent>;\n readonly toolCallStarted: (\n payload: ToolCallStartedPayload,\n ) => Effect.Effect<ToolCallStartedEvent>;\n readonly toolCallCompleted: (\n payload: ToolCallCompletedPayload,\n ) => Effect.Effect<ToolCallCompletedEvent>;\n readonly toolCallFailed: (payload: ToolCallFailedPayload) => Effect.Effect<ToolCallFailedEvent>;\n readonly stopTurnRequested: (\n payload: StopTurnRequestedPayload,\n ) => Effect.Effect<StopTurnRequestedEvent>;\n readonly stopTurnApplied: (\n payload: StopTurnAppliedPayload,\n ) => Effect.Effect<StopTurnAppliedEvent>;\n readonly compactionRequested: (\n payload: CompactionRequestedPayload,\n ) => Effect.Effect<CompactionRequestedEvent>;\n readonly compactionStarted: (\n payload: CompactionStartedPayload,\n ) => Effect.Effect<CompactionStartedEvent>;\n readonly summaryCreated: (payload: SummaryCreatedPayload) => Effect.Effect<SummaryCreatedEvent>;\n readonly contextRebased: (payload: ContextRebasedPayload) => Effect.Effect<ContextRebasedEvent>;\n readonly compactionCompleted: (\n payload: CompactionCompletedPayload,\n ) => Effect.Effect<CompactionCompletedEvent>;\n readonly compactionFailed: (\n payload: CompactionFailedPayload,\n ) => Effect.Effect<CompactionFailedEvent>;\n // Ephemeral live-only events.\n readonly textDelta: (payload: TextDeltaPayload) => Effect.Effect<TextDeltaEvent>;\n readonly reasoningDelta: (payload: ReasoningDeltaPayload) => Effect.Effect<ReasoningDeltaEvent>;\n readonly toolParamsStart: (\n payload: ToolParamsStartPayload,\n ) => Effect.Effect<ToolParamsStartEvent>;\n readonly toolParamsDelta: (\n payload: ToolParamsDeltaPayload,\n ) => Effect.Effect<ToolParamsDeltaEvent>;\n readonly toolParamsEnd: (payload: ToolParamsEndPayload) => Effect.Effect<ToolParamsEndEvent>;\n}\n\n/**\n * The one construction path for built-in event envelopes. It closes over the\n * session identity, mints `eventId`s, and stamps `createdAtMs` from the\n * ambient `Clock`, so lifecycle code provides only the payload.\n */\nexport class EventFactory extends Context.Service<EventFactory, EventFactoryShape>()(\n \"@effect-durable-agent/EventFactory\",\n) {\n static readonly Live = Layer.effect(\n EventFactory,\n Effect.gen(function* () {\n const { sessionId } = yield* SessionContext;\n const ids = yield* IdGenerator;\n\n const envelope = (durability: \"durable\" | \"ephemeral\") =>\n Effect.gen(function* () {\n const eventId = yield* ids.makeEventId();\n const nowMs = yield* Clock.currentTimeMillis;\n const trace = yield* currentOrRootEDAEventTrace;\n return {\n namespace: effectDurableAgentNamespace,\n schemaVersion: schemaV1,\n durability,\n eventId,\n sessionId,\n createdAtMs: UnixEpochMillis.make(nowMs),\n trace,\n };\n });\n\n const event =\n (durability: \"durable\" | \"ephemeral\") =>\n <Payload, Event>(schema: { readonly make: (input: never) => Event }, type: EventType) =>\n (payload: Payload): Effect.Effect<Event> =>\n Effect.map(envelope(durability), (fields) =>\n schema.make({ ...fields, type, payload } as never),\n );\n const durable = event(\"durable\");\n const ephemeral = event(\"ephemeral\");\n\n return {\n commandAdmitted: durable<CommandAdmittedPayload, CommandAdmittedEvent>(\n CommandAdmittedEvent,\n commandAdmittedEventType,\n ),\n commandStarted: durable<CommandStartedPayload, CommandStartedEvent>(\n CommandStartedEvent,\n commandStartedEventType,\n ),\n commandCompleted: durable<CommandCompletedPayload, CommandCompletedEvent>(\n CommandCompletedEvent,\n commandCompletedEventType,\n ),\n commandFailed: durable<CommandFailedPayload, CommandFailedEvent>(\n CommandFailedEvent,\n commandFailedEventType,\n ),\n commandCancelled: durable<CommandCancelledPayload, CommandCancelledEvent>(\n CommandCancelledEvent,\n commandCancelledEventType,\n ),\n systemMessageCommitted: durable<SystemMessageCommittedPayload, SystemMessageCommittedEvent>(\n SystemMessageCommittedEvent,\n systemMessageCommittedEventType,\n ),\n userMessageCommitted: durable<UserMessageCommittedPayload, UserMessageCommittedEvent>(\n UserMessageCommittedEvent,\n userMessageCommittedEventType,\n ),\n userMessageSubmitted: durable<UserMessageSubmittedPayload, UserMessageSubmittedEvent>(\n UserMessageSubmittedEvent,\n userMessageSubmittedEventType,\n ),\n userMessagePromoted: durable<UserMessagePromotedPayload, UserMessagePromotedEvent>(\n UserMessagePromotedEvent,\n userMessagePromotedEventType,\n ),\n userMessageCancelled: durable<UserMessageCancelledPayload, UserMessageCancelledEvent>(\n UserMessageCancelledEvent,\n userMessageCancelledEventType,\n ),\n pendingMessagesPaused: durable<PendingMessagesPausedPayload, PendingMessagesPausedEvent>(\n PendingMessagesPausedEvent,\n pendingMessagesPausedEventType,\n ),\n steeringMessageQueued: durable<SteeringMessageQueuedPayload, SteeringMessageQueuedEvent>(\n SteeringMessageQueuedEvent,\n steeringMessageQueuedEventType,\n ),\n steeringMessageCancelled: durable<\n SteeringMessageCancelledPayload,\n SteeringMessageCancelledEvent\n >(SteeringMessageCancelledEvent, steeringMessageCancelledEventType),\n assistantMessageCommitted: durable<\n AssistantMessageCommittedPayload,\n AssistantMessageCommittedEvent\n >(AssistantMessageCommittedEvent, assistantMessageCommittedEventType),\n assistantPartialCommitted: durable<\n AssistantPartialCommittedPayload,\n AssistantPartialCommittedEvent\n >(AssistantPartialCommittedEvent, assistantPartialCommittedEventType),\n runSchedulingRequested: durable<RunSchedulingRequestedPayload, RunSchedulingRequestedEvent>(\n RunSchedulingRequestedEvent,\n runSchedulingRequestedEventType,\n ),\n runSchedulingDelivered: durable<RunSchedulingDeliveredPayload, RunSchedulingDeliveredEvent>(\n RunSchedulingDeliveredEvent,\n runSchedulingDeliveredEventType,\n ),\n runSchedulingInvalidated: durable<\n RunSchedulingInvalidatedPayload,\n RunSchedulingInvalidatedEvent\n >(RunSchedulingInvalidatedEvent, runSchedulingInvalidatedEventType),\n runSchedulingGranted: durable<RunSchedulingGrantedPayload, RunSchedulingGrantedEvent>(\n RunSchedulingGrantedEvent,\n runSchedulingGrantedEventType,\n ),\n runStarted: durable<RunStartedPayload, RunStartedEvent>(\n RunStartedEvent,\n runStartedEventType,\n ),\n runCompleted: durable<RunCompletedPayload, RunCompletedEvent>(\n RunCompletedEvent,\n runCompletedEventType,\n ),\n runFailed: durable<RunFailedPayload, RunFailedEvent>(RunFailedEvent, runFailedEventType),\n recoveryCompleted: durable<RecoveryCompletedPayload, RecoveryCompletedEvent>(\n RecoveryCompletedEvent,\n recoveryCompletedEventType,\n ),\n runInterrupted: durable<RunInterruptedPayload, RunInterruptedEvent>(\n RunInterruptedEvent,\n runInterruptedEventType,\n ),\n turnStarted: durable<TurnStartedPayload, TurnStartedEvent>(\n TurnStartedEvent,\n turnStartedEventType,\n ),\n turnCompleted: durable<TurnCompletedPayload, TurnCompletedEvent>(\n TurnCompletedEvent,\n turnCompletedEventType,\n ),\n turnFailed: durable<TurnFailedPayload, TurnFailedEvent>(\n TurnFailedEvent,\n turnFailedEventType,\n ),\n turnStopped: durable<TurnStoppedPayload, TurnStoppedEvent>(\n TurnStoppedEvent,\n turnStoppedEventType,\n ),\n inferenceStarted: durable<InferenceStartedPayload, InferenceStartedEvent>(\n InferenceStartedEvent,\n inferenceStartedEventType,\n ),\n inferenceCompleted: durable<InferenceCompletedPayload, InferenceCompletedEvent>(\n InferenceCompletedEvent,\n inferenceCompletedEventType,\n ),\n inferenceFailed: durable<InferenceFailedPayload, InferenceFailedEvent>(\n InferenceFailedEvent,\n inferenceFailedEventType,\n ),\n toolCallCreated: durable<ToolCallCreatedPayload, ToolCallCreatedEvent>(\n ToolCallCreatedEvent,\n toolCallCreatedEventType,\n ),\n toolCallRejected: durable<ToolCallRejectedPayload, ToolCallRejectedEvent>(\n ToolCallRejectedEvent,\n toolCallRejectedEventType,\n ),\n toolCallStarted: durable<ToolCallStartedPayload, ToolCallStartedEvent>(\n ToolCallStartedEvent,\n toolCallStartedEventType,\n ),\n toolCallCompleted: durable<ToolCallCompletedPayload, ToolCallCompletedEvent>(\n ToolCallCompletedEvent,\n toolCallCompletedEventType,\n ),\n toolCallFailed: durable<ToolCallFailedPayload, ToolCallFailedEvent>(\n ToolCallFailedEvent,\n toolCallFailedEventType,\n ),\n stopTurnRequested: durable<StopTurnRequestedPayload, StopTurnRequestedEvent>(\n StopTurnRequestedEvent,\n stopTurnRequestedEventType,\n ),\n stopTurnApplied: durable<StopTurnAppliedPayload, StopTurnAppliedEvent>(\n StopTurnAppliedEvent,\n stopTurnAppliedEventType,\n ),\n compactionRequested: durable<CompactionRequestedPayload, CompactionRequestedEvent>(\n CompactionRequestedEvent,\n compactionRequestedEventType,\n ),\n compactionStarted: durable<CompactionStartedPayload, CompactionStartedEvent>(\n CompactionStartedEvent,\n compactionStartedEventType,\n ),\n summaryCreated: durable<SummaryCreatedPayload, SummaryCreatedEvent>(\n SummaryCreatedEvent,\n summaryCreatedEventType,\n ),\n contextRebased: durable<ContextRebasedPayload, ContextRebasedEvent>(\n ContextRebasedEvent,\n contextRebasedEventType,\n ),\n compactionCompleted: durable<CompactionCompletedPayload, CompactionCompletedEvent>(\n CompactionCompletedEvent,\n compactionCompletedEventType,\n ),\n compactionFailed: durable<CompactionFailedPayload, CompactionFailedEvent>(\n CompactionFailedEvent,\n compactionFailedEventType,\n ),\n textDelta: ephemeral<TextDeltaPayload, TextDeltaEvent>(TextDeltaEvent, textDeltaEventType),\n reasoningDelta: ephemeral<ReasoningDeltaPayload, ReasoningDeltaEvent>(\n ReasoningDeltaEvent,\n reasoningDeltaEventType,\n ),\n toolParamsStart: ephemeral<ToolParamsStartPayload, ToolParamsStartEvent>(\n ToolParamsStartEvent,\n toolParamsStartEventType,\n ),\n toolParamsDelta: ephemeral<ToolParamsDeltaPayload, ToolParamsDeltaEvent>(\n ToolParamsDeltaEvent,\n toolParamsDeltaEventType,\n ),\n toolParamsEnd: ephemeral<ToolParamsEndPayload, ToolParamsEndEvent>(\n ToolParamsEndEvent,\n toolParamsEndEventType,\n ),\n };\n }),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,IAAa,iBAAb,MAAa,uBAAuB,QAAQ,QAA6C,CAAC,CACxF,sCACF,CAAC,CAAC;CACA,OAAgB,QAAQ,cAAyB,MAAM,QAAQ,gBAAgB,EAAE,UAAU,CAAC;AAC9F;;;;;;;;AC8QA,IAAa,eAAb,MAAa,qBAAqB,QAAQ,QAAyC,CAAC,CAClF,oCACF,CAAC,CAAC;CACA,OAAgB,OAAO,MAAM,OAC3B,cACA,OAAO,IAAI,aAAa;EACtB,MAAM,EAAE,cAAc,OAAO;EAC7B,MAAM,MAAM,OAAO;EAEnB,MAAM,YAAY,eAChB,OAAO,IAAI,aAAa;GACtB,MAAM,UAAU,OAAO,IAAI,YAAY;GACvC,MAAM,QAAQ,OAAO,MAAM;GAC3B,MAAM,QAAQ,OAAO;GACrB,OAAO;IACL,WAAW;IACX,eAAe;IACf;IACA;IACA;IACA,aAAa,gBAAgB,KAAK,KAAK;IACvC;GACF;EACF,CAAC;EAEH,MAAM,SACH,gBACgB,QAAoD,UACpE,YACC,OAAO,IAAI,SAAS,UAAU,IAAI,WAChC,OAAO,KAAK;GAAE,GAAG;GAAQ;GAAM;EAAQ,CAAU,CACnD;EACJ,MAAM,UAAU,MAAM,SAAS;EAC/B,MAAM,YAAY,MAAM,WAAW;EAEnC,OAAO;GACL,iBAAiB,QACf,sBACA,wBACF;GACA,gBAAgB,QACd,qBACA,uBACF;GACA,kBAAkB,QAChB,uBACA,yBACF;GACA,eAAe,QACb,oBACA,sBACF;GACA,kBAAkB,QAChB,uBACA,yBACF;GACA,wBAAwB,QACtB,6BACA,+BACF;GACA,sBAAsB,QACpB,2BACA,6BACF;GACA,sBAAsB,QACpB,2BACA,6BACF;GACA,qBAAqB,QACnB,0BACA,4BACF;GACA,sBAAsB,QACpB,2BACA,6BACF;GACA,uBAAuB,QACrB,4BACA,8BACF;GACA,uBAAuB,QACrB,4BACA,8BACF;GACA,0BAA0B,QAGxB,+BAA+B,iCAAiC;GAClE,2BAA2B,QAGzB,gCAAgC,kCAAkC;GACpE,2BAA2B,QAGzB,gCAAgC,kCAAkC;GACpE,wBAAwB,QACtB,6BACA,+BACF;GACA,wBAAwB,QACtB,6BACA,+BACF;GACA,0BAA0B,QAGxB,+BAA+B,iCAAiC;GAClE,sBAAsB,QACpB,2BACA,6BACF;GACA,YAAY,QACV,iBACA,mBACF;GACA,cAAc,QACZ,mBACA,qBACF;GACA,WAAW,QAA0C,gBAAgB,kBAAkB;GACvF,mBAAmB,QACjB,wBACA,0BACF;GACA,gBAAgB,QACd,qBACA,uBACF;GACA,aAAa,QACX,kBACA,oBACF;GACA,eAAe,QACb,oBACA,sBACF;GACA,YAAY,QACV,iBACA,mBACF;GACA,aAAa,QACX,kBACA,oBACF;GACA,kBAAkB,QAChB,uBACA,yBACF;GACA,oBAAoB,QAClB,yBACA,2BACF;GACA,iBAAiB,QACf,sBACA,wBACF;GACA,iBAAiB,QACf,sBACA,wBACF;GACA,kBAAkB,QAChB,uBACA,yBACF;GACA,iBAAiB,QACf,sBACA,wBACF;GACA,mBAAmB,QACjB,wBACA,0BACF;GACA,gBAAgB,QACd,qBACA,uBACF;GACA,mBAAmB,QACjB,wBACA,0BACF;GACA,iBAAiB,QACf,sBACA,wBACF;GACA,qBAAqB,QACnB,0BACA,4BACF;GACA,mBAAmB,QACjB,wBACA,0BACF;GACA,gBAAgB,QACd,qBACA,uBACF;GACA,gBAAgB,QACd,qBACA,uBACF;GACA,qBAAqB,QACnB,0BACA,4BACF;GACA,kBAAkB,QAChB,uBACA,yBACF;GACA,WAAW,UAA4C,gBAAgB,kBAAkB;GACzF,gBAAgB,UACd,qBACA,uBACF;GACA,iBAAiB,UACf,sBACA,wBACF;GACA,iBAAiB,UACf,sBACA,wBACF;GACA,eAAe,UACb,oBACA,sBACF;EACF;CACF,CAAC,CACH;AACF"}
|
|
1
|
+
{"version":3,"file":"event-factory-VAci3NJb.js","names":[],"sources":["../src/services/session-context.ts","../src/services/event-factory.ts"],"sourcesContent":["import * as Context from \"effect/Context\";\nimport * as Layer from \"effect/Layer\";\n\nimport { SessionId } from \"../types/core\";\n\n/** Runtime-scoped session identity dependency. */\nexport interface SessionContextShape {\n /** The one session this runtime instance owns; fixed for the runtime lifetime. */\n readonly sessionId: SessionId;\n}\n\n/**\n * Identity of the session a runtime instance is bound to. One runtime = one\n * session, so services read the session here instead of threading `sessionId`\n * through every input struct.\n */\nexport class SessionContext extends Context.Service<SessionContext, SessionContextShape>()(\n \"@effect-durable-agent/SessionContext\",\n) {\n static readonly Live = (sessionId: SessionId) => Layer.succeed(SessionContext, { sessionId });\n}\n","import * as Clock from \"effect/Clock\";\nimport * as Context from \"effect/Context\";\nimport * as Effect from \"effect/Effect\";\nimport * as Layer from \"effect/Layer\";\n\nimport {\n CommandAdmittedEvent,\n CommandAdmittedPayload,\n CommandCancelledEvent,\n CommandCancelledPayload,\n CommandCompletedEvent,\n CommandCompletedPayload,\n CommandFailedEvent,\n CommandFailedPayload,\n CommandStartedEvent,\n CommandStartedPayload,\n CompactionCompletedEvent,\n CompactionCompletedPayload,\n CompactionFailedEvent,\n CompactionFailedPayload,\n CompactionRequestedEvent,\n CompactionRequestedPayload,\n CompactionStartedEvent,\n CompactionStartedPayload,\n ContextRebasedEvent,\n ContextRebasedPayload,\n AssistantMessageCommittedEvent,\n AssistantMessageCommittedPayload,\n AssistantPartialCommittedEvent,\n AssistantPartialCommittedPayload,\n EventType,\n InferenceCompletedEvent,\n InferenceCompletedPayload,\n InferenceFailedEvent,\n InferenceFailedPayload,\n InferenceStartedEvent,\n InferenceStartedPayload,\n SummaryCreatedEvent,\n SummaryCreatedPayload,\n SystemMessageCommittedEvent,\n SystemMessageCommittedPayload,\n ReasoningDeltaEvent,\n ReasoningDeltaPayload,\n RecoveryCompletedEvent,\n RecoveryCompletedPayload,\n RunCompletedEvent,\n RunCompletedPayload,\n RunFailedEvent,\n RunFailedPayload,\n RunInterruptedEvent,\n RunInterruptedPayload,\n RunSchedulingRequestedEvent,\n RunSchedulingRequestedPayload,\n runSchedulingRequestedEventType,\n RunSchedulingDeliveredEvent,\n RunSchedulingDeliveredPayload,\n runSchedulingDeliveredEventType,\n RunSchedulingInvalidatedEvent,\n RunSchedulingInvalidatedPayload,\n runSchedulingInvalidatedEventType,\n RunSchedulingGrantedEvent,\n RunSchedulingGrantedPayload,\n runSchedulingGrantedEventType,\n RunStartedEvent,\n RunStartedPayload,\n StopTurnAppliedEvent,\n StopTurnAppliedPayload,\n StopTurnRequestedEvent,\n StopTurnRequestedPayload,\n SteeringMessageCancelledEvent,\n SteeringMessageCancelledPayload,\n SteeringMessageQueuedEvent,\n SteeringMessageQueuedPayload,\n TextDeltaEvent,\n TextDeltaPayload,\n ToolCallCompletedEvent,\n ToolCallCompletedPayload,\n ToolCallCreatedEvent,\n ToolCallCreatedPayload,\n ToolCallFailedEvent,\n ToolCallFailedPayload,\n ToolCallRejectedEvent,\n ToolCallRejectedPayload,\n ToolCallStartedEvent,\n ToolCallStartedPayload,\n ToolParamsDeltaEvent,\n ToolParamsDeltaPayload,\n ToolParamsEndEvent,\n ToolParamsEndPayload,\n ToolParamsStartEvent,\n ToolParamsStartPayload,\n TurnCompletedEvent,\n TurnCompletedPayload,\n TurnFailedEvent,\n TurnFailedPayload,\n TurnStartedEvent,\n TurnStartedPayload,\n TurnStoppedEvent,\n TurnStoppedPayload,\n UnixEpochMillis,\n UserMessageCommittedEvent,\n UserMessageCommittedPayload,\n UserMessageSubmittedEvent,\n UserMessageSubmittedPayload,\n UserMessagePromotedEvent,\n UserMessagePromotedPayload,\n UserMessageCancelledEvent,\n UserMessageCancelledPayload,\n PendingMessagesPausedEvent,\n PendingMessagesPausedPayload,\n commandAdmittedEventType,\n commandCancelledEventType,\n commandCompletedEventType,\n commandFailedEventType,\n commandStartedEventType,\n compactionCompletedEventType,\n compactionFailedEventType,\n compactionRequestedEventType,\n compactionStartedEventType,\n contextRebasedEventType,\n assistantMessageCommittedEventType,\n assistantPartialCommittedEventType,\n effectDurableAgentNamespace,\n inferenceCompletedEventType,\n inferenceFailedEventType,\n inferenceStartedEventType,\n reasoningDeltaEventType,\n recoveryCompletedEventType,\n runCompletedEventType,\n runFailedEventType,\n runInterruptedEventType,\n runStartedEventType,\n schemaV1,\n steeringMessageCancelledEventType,\n summaryCreatedEventType,\n systemMessageCommittedEventType,\n steeringMessageQueuedEventType,\n stopTurnAppliedEventType,\n stopTurnRequestedEventType,\n textDeltaEventType,\n toolCallCompletedEventType,\n toolCallCreatedEventType,\n toolCallFailedEventType,\n toolCallRejectedEventType,\n toolCallStartedEventType,\n toolParamsDeltaEventType,\n toolParamsEndEventType,\n toolParamsStartEventType,\n turnCompletedEventType,\n turnFailedEventType,\n turnStartedEventType,\n turnStoppedEventType,\n userMessageCommittedEventType,\n userMessageSubmittedEventType,\n userMessagePromotedEventType,\n userMessageCancelledEventType,\n pendingMessagesPausedEventType,\n} from \"../types/events\";\nimport { IdGenerator } from \"./id-generator\";\nimport { SessionContext } from \"./session-context\";\nimport { currentOrRootEDAEventTrace } from \"./tracing\";\n\n/** Central envelope factory that stamps session id, event id, and current clock time. */\nexport interface EventFactoryShape {\n // Durable lifecycle events.\n readonly commandAdmitted: (\n payload: CommandAdmittedPayload,\n ) => Effect.Effect<CommandAdmittedEvent>;\n readonly commandStarted: (payload: CommandStartedPayload) => Effect.Effect<CommandStartedEvent>;\n readonly commandCompleted: (\n payload: CommandCompletedPayload,\n ) => Effect.Effect<CommandCompletedEvent>;\n readonly commandFailed: (payload: CommandFailedPayload) => Effect.Effect<CommandFailedEvent>;\n readonly commandCancelled: (\n payload: CommandCancelledPayload,\n ) => Effect.Effect<CommandCancelledEvent>;\n readonly systemMessageCommitted: (\n payload: SystemMessageCommittedPayload,\n ) => Effect.Effect<SystemMessageCommittedEvent>;\n readonly userMessageCommitted: (\n payload: UserMessageCommittedPayload,\n ) => Effect.Effect<UserMessageCommittedEvent>;\n readonly userMessageSubmitted: (\n payload: UserMessageSubmittedPayload,\n ) => Effect.Effect<UserMessageSubmittedEvent>;\n readonly userMessagePromoted: (\n payload: UserMessagePromotedPayload,\n ) => Effect.Effect<UserMessagePromotedEvent>;\n readonly userMessageCancelled: (\n payload: UserMessageCancelledPayload,\n ) => Effect.Effect<UserMessageCancelledEvent>;\n readonly pendingMessagesPaused: (\n payload: PendingMessagesPausedPayload,\n ) => Effect.Effect<PendingMessagesPausedEvent>;\n readonly steeringMessageQueued: (\n payload: SteeringMessageQueuedPayload,\n ) => Effect.Effect<SteeringMessageQueuedEvent>;\n readonly steeringMessageCancelled: (\n payload: SteeringMessageCancelledPayload,\n ) => Effect.Effect<SteeringMessageCancelledEvent>;\n readonly assistantMessageCommitted: (\n payload: AssistantMessageCommittedPayload,\n ) => Effect.Effect<AssistantMessageCommittedEvent>;\n readonly assistantPartialCommitted: (\n payload: AssistantPartialCommittedPayload,\n ) => Effect.Effect<AssistantPartialCommittedEvent>;\n readonly runSchedulingRequested: (\n payload: RunSchedulingRequestedPayload,\n ) => Effect.Effect<RunSchedulingRequestedEvent>;\n readonly runSchedulingDelivered: (\n payload: RunSchedulingDeliveredPayload,\n ) => Effect.Effect<RunSchedulingDeliveredEvent>;\n readonly runSchedulingInvalidated: (\n payload: RunSchedulingInvalidatedPayload,\n ) => Effect.Effect<RunSchedulingInvalidatedEvent>;\n readonly runSchedulingGranted: (\n payload: RunSchedulingGrantedPayload,\n ) => Effect.Effect<RunSchedulingGrantedEvent>;\n readonly runStarted: (payload: RunStartedPayload) => Effect.Effect<RunStartedEvent>;\n readonly runCompleted: (payload: RunCompletedPayload) => Effect.Effect<RunCompletedEvent>;\n readonly runFailed: (payload: RunFailedPayload) => Effect.Effect<RunFailedEvent>;\n readonly recoveryCompleted: (\n payload: RecoveryCompletedPayload,\n ) => Effect.Effect<RecoveryCompletedEvent>;\n /** @deprecated Emit `runFailed` with `error.code = \"run.interrupted\"`. Retained for legacy event construction only. */\n readonly runInterrupted: (payload: RunInterruptedPayload) => Effect.Effect<RunInterruptedEvent>;\n readonly turnStarted: (payload: TurnStartedPayload) => Effect.Effect<TurnStartedEvent>;\n readonly turnCompleted: (payload: TurnCompletedPayload) => Effect.Effect<TurnCompletedEvent>;\n readonly turnFailed: (payload: TurnFailedPayload) => Effect.Effect<TurnFailedEvent>;\n /** @deprecated Emit `turnFailed` with `error.code = \"turn.interrupted\"`. Retained for legacy event construction only. */\n readonly turnStopped: (payload: TurnStoppedPayload) => Effect.Effect<TurnStoppedEvent>;\n readonly inferenceStarted: (\n payload: InferenceStartedPayload,\n ) => Effect.Effect<InferenceStartedEvent>;\n readonly inferenceCompleted: (\n payload: InferenceCompletedPayload,\n ) => Effect.Effect<InferenceCompletedEvent>;\n readonly inferenceFailed: (\n payload: InferenceFailedPayload,\n ) => Effect.Effect<InferenceFailedEvent>;\n readonly toolCallCreated: (\n payload: ToolCallCreatedPayload,\n ) => Effect.Effect<ToolCallCreatedEvent>;\n readonly toolCallRejected: (\n payload: ToolCallRejectedPayload,\n ) => Effect.Effect<ToolCallRejectedEvent>;\n readonly toolCallStarted: (\n payload: ToolCallStartedPayload,\n ) => Effect.Effect<ToolCallStartedEvent>;\n readonly toolCallCompleted: (\n payload: ToolCallCompletedPayload,\n ) => Effect.Effect<ToolCallCompletedEvent>;\n readonly toolCallFailed: (payload: ToolCallFailedPayload) => Effect.Effect<ToolCallFailedEvent>;\n readonly stopTurnRequested: (\n payload: StopTurnRequestedPayload,\n ) => Effect.Effect<StopTurnRequestedEvent>;\n readonly stopTurnApplied: (\n payload: StopTurnAppliedPayload,\n ) => Effect.Effect<StopTurnAppliedEvent>;\n readonly compactionRequested: (\n payload: CompactionRequestedPayload,\n ) => Effect.Effect<CompactionRequestedEvent>;\n readonly compactionStarted: (\n payload: CompactionStartedPayload,\n ) => Effect.Effect<CompactionStartedEvent>;\n readonly summaryCreated: (payload: SummaryCreatedPayload) => Effect.Effect<SummaryCreatedEvent>;\n readonly contextRebased: (payload: ContextRebasedPayload) => Effect.Effect<ContextRebasedEvent>;\n readonly compactionCompleted: (\n payload: CompactionCompletedPayload,\n ) => Effect.Effect<CompactionCompletedEvent>;\n readonly compactionFailed: (\n payload: CompactionFailedPayload,\n ) => Effect.Effect<CompactionFailedEvent>;\n // Ephemeral live-only events.\n readonly textDelta: (payload: TextDeltaPayload) => Effect.Effect<TextDeltaEvent>;\n readonly reasoningDelta: (payload: ReasoningDeltaPayload) => Effect.Effect<ReasoningDeltaEvent>;\n readonly toolParamsStart: (\n payload: ToolParamsStartPayload,\n ) => Effect.Effect<ToolParamsStartEvent>;\n readonly toolParamsDelta: (\n payload: ToolParamsDeltaPayload,\n ) => Effect.Effect<ToolParamsDeltaEvent>;\n readonly toolParamsEnd: (payload: ToolParamsEndPayload) => Effect.Effect<ToolParamsEndEvent>;\n}\n\n/**\n * The one construction path for built-in event envelopes. It closes over the\n * session identity, mints `eventId`s, and stamps `createdAtMs` from the\n * ambient `Clock`, so lifecycle code provides only the payload.\n */\nexport class EventFactory extends Context.Service<EventFactory, EventFactoryShape>()(\n \"@effect-durable-agent/EventFactory\",\n) {\n static readonly Live = Layer.effect(\n EventFactory,\n Effect.gen(function* () {\n const { sessionId } = yield* SessionContext;\n const ids = yield* IdGenerator;\n\n const envelope = (durability: \"durable\" | \"ephemeral\") =>\n Effect.gen(function* () {\n const eventId = yield* ids.makeEventId();\n const nowMs = yield* Clock.currentTimeMillis;\n const trace = yield* currentOrRootEDAEventTrace;\n return {\n namespace: effectDurableAgentNamespace,\n schemaVersion: schemaV1,\n durability,\n eventId,\n sessionId,\n createdAtMs: UnixEpochMillis.make(nowMs),\n trace,\n };\n });\n\n const event =\n (durability: \"durable\" | \"ephemeral\") =>\n <Payload, Event>(schema: { readonly make: (input: never) => Event }, type: EventType) =>\n (payload: Payload): Effect.Effect<Event> =>\n Effect.map(envelope(durability), (fields) =>\n schema.make({ ...fields, type, payload } as never),\n );\n const durable = event(\"durable\");\n const ephemeral = event(\"ephemeral\");\n\n return {\n commandAdmitted: durable<CommandAdmittedPayload, CommandAdmittedEvent>(\n CommandAdmittedEvent,\n commandAdmittedEventType,\n ),\n commandStarted: durable<CommandStartedPayload, CommandStartedEvent>(\n CommandStartedEvent,\n commandStartedEventType,\n ),\n commandCompleted: durable<CommandCompletedPayload, CommandCompletedEvent>(\n CommandCompletedEvent,\n commandCompletedEventType,\n ),\n commandFailed: durable<CommandFailedPayload, CommandFailedEvent>(\n CommandFailedEvent,\n commandFailedEventType,\n ),\n commandCancelled: durable<CommandCancelledPayload, CommandCancelledEvent>(\n CommandCancelledEvent,\n commandCancelledEventType,\n ),\n systemMessageCommitted: durable<SystemMessageCommittedPayload, SystemMessageCommittedEvent>(\n SystemMessageCommittedEvent,\n systemMessageCommittedEventType,\n ),\n userMessageCommitted: durable<UserMessageCommittedPayload, UserMessageCommittedEvent>(\n UserMessageCommittedEvent,\n userMessageCommittedEventType,\n ),\n userMessageSubmitted: durable<UserMessageSubmittedPayload, UserMessageSubmittedEvent>(\n UserMessageSubmittedEvent,\n userMessageSubmittedEventType,\n ),\n userMessagePromoted: durable<UserMessagePromotedPayload, UserMessagePromotedEvent>(\n UserMessagePromotedEvent,\n userMessagePromotedEventType,\n ),\n userMessageCancelled: durable<UserMessageCancelledPayload, UserMessageCancelledEvent>(\n UserMessageCancelledEvent,\n userMessageCancelledEventType,\n ),\n pendingMessagesPaused: durable<PendingMessagesPausedPayload, PendingMessagesPausedEvent>(\n PendingMessagesPausedEvent,\n pendingMessagesPausedEventType,\n ),\n steeringMessageQueued: durable<SteeringMessageQueuedPayload, SteeringMessageQueuedEvent>(\n SteeringMessageQueuedEvent,\n steeringMessageQueuedEventType,\n ),\n steeringMessageCancelled: durable<\n SteeringMessageCancelledPayload,\n SteeringMessageCancelledEvent\n >(SteeringMessageCancelledEvent, steeringMessageCancelledEventType),\n assistantMessageCommitted: durable<\n AssistantMessageCommittedPayload,\n AssistantMessageCommittedEvent\n >(AssistantMessageCommittedEvent, assistantMessageCommittedEventType),\n assistantPartialCommitted: durable<\n AssistantPartialCommittedPayload,\n AssistantPartialCommittedEvent\n >(AssistantPartialCommittedEvent, assistantPartialCommittedEventType),\n runSchedulingRequested: durable<RunSchedulingRequestedPayload, RunSchedulingRequestedEvent>(\n RunSchedulingRequestedEvent,\n runSchedulingRequestedEventType,\n ),\n runSchedulingDelivered: durable<RunSchedulingDeliveredPayload, RunSchedulingDeliveredEvent>(\n RunSchedulingDeliveredEvent,\n runSchedulingDeliveredEventType,\n ),\n runSchedulingInvalidated: durable<\n RunSchedulingInvalidatedPayload,\n RunSchedulingInvalidatedEvent\n >(RunSchedulingInvalidatedEvent, runSchedulingInvalidatedEventType),\n runSchedulingGranted: durable<RunSchedulingGrantedPayload, RunSchedulingGrantedEvent>(\n RunSchedulingGrantedEvent,\n runSchedulingGrantedEventType,\n ),\n runStarted: durable<RunStartedPayload, RunStartedEvent>(\n RunStartedEvent,\n runStartedEventType,\n ),\n runCompleted: durable<RunCompletedPayload, RunCompletedEvent>(\n RunCompletedEvent,\n runCompletedEventType,\n ),\n runFailed: durable<RunFailedPayload, RunFailedEvent>(RunFailedEvent, runFailedEventType),\n recoveryCompleted: durable<RecoveryCompletedPayload, RecoveryCompletedEvent>(\n RecoveryCompletedEvent,\n recoveryCompletedEventType,\n ),\n runInterrupted: durable<RunInterruptedPayload, RunInterruptedEvent>(\n RunInterruptedEvent,\n runInterruptedEventType,\n ),\n turnStarted: durable<TurnStartedPayload, TurnStartedEvent>(\n TurnStartedEvent,\n turnStartedEventType,\n ),\n turnCompleted: durable<TurnCompletedPayload, TurnCompletedEvent>(\n TurnCompletedEvent,\n turnCompletedEventType,\n ),\n turnFailed: durable<TurnFailedPayload, TurnFailedEvent>(\n TurnFailedEvent,\n turnFailedEventType,\n ),\n turnStopped: durable<TurnStoppedPayload, TurnStoppedEvent>(\n TurnStoppedEvent,\n turnStoppedEventType,\n ),\n inferenceStarted: durable<InferenceStartedPayload, InferenceStartedEvent>(\n InferenceStartedEvent,\n inferenceStartedEventType,\n ),\n inferenceCompleted: durable<InferenceCompletedPayload, InferenceCompletedEvent>(\n InferenceCompletedEvent,\n inferenceCompletedEventType,\n ),\n inferenceFailed: durable<InferenceFailedPayload, InferenceFailedEvent>(\n InferenceFailedEvent,\n inferenceFailedEventType,\n ),\n toolCallCreated: durable<ToolCallCreatedPayload, ToolCallCreatedEvent>(\n ToolCallCreatedEvent,\n toolCallCreatedEventType,\n ),\n toolCallRejected: durable<ToolCallRejectedPayload, ToolCallRejectedEvent>(\n ToolCallRejectedEvent,\n toolCallRejectedEventType,\n ),\n toolCallStarted: durable<ToolCallStartedPayload, ToolCallStartedEvent>(\n ToolCallStartedEvent,\n toolCallStartedEventType,\n ),\n toolCallCompleted: durable<ToolCallCompletedPayload, ToolCallCompletedEvent>(\n ToolCallCompletedEvent,\n toolCallCompletedEventType,\n ),\n toolCallFailed: durable<ToolCallFailedPayload, ToolCallFailedEvent>(\n ToolCallFailedEvent,\n toolCallFailedEventType,\n ),\n stopTurnRequested: durable<StopTurnRequestedPayload, StopTurnRequestedEvent>(\n StopTurnRequestedEvent,\n stopTurnRequestedEventType,\n ),\n stopTurnApplied: durable<StopTurnAppliedPayload, StopTurnAppliedEvent>(\n StopTurnAppliedEvent,\n stopTurnAppliedEventType,\n ),\n compactionRequested: durable<CompactionRequestedPayload, CompactionRequestedEvent>(\n CompactionRequestedEvent,\n compactionRequestedEventType,\n ),\n compactionStarted: durable<CompactionStartedPayload, CompactionStartedEvent>(\n CompactionStartedEvent,\n compactionStartedEventType,\n ),\n summaryCreated: durable<SummaryCreatedPayload, SummaryCreatedEvent>(\n SummaryCreatedEvent,\n summaryCreatedEventType,\n ),\n contextRebased: durable<ContextRebasedPayload, ContextRebasedEvent>(\n ContextRebasedEvent,\n contextRebasedEventType,\n ),\n compactionCompleted: durable<CompactionCompletedPayload, CompactionCompletedEvent>(\n CompactionCompletedEvent,\n compactionCompletedEventType,\n ),\n compactionFailed: durable<CompactionFailedPayload, CompactionFailedEvent>(\n CompactionFailedEvent,\n compactionFailedEventType,\n ),\n textDelta: ephemeral<TextDeltaPayload, TextDeltaEvent>(TextDeltaEvent, textDeltaEventType),\n reasoningDelta: ephemeral<ReasoningDeltaPayload, ReasoningDeltaEvent>(\n ReasoningDeltaEvent,\n reasoningDeltaEventType,\n ),\n toolParamsStart: ephemeral<ToolParamsStartPayload, ToolParamsStartEvent>(\n ToolParamsStartEvent,\n toolParamsStartEventType,\n ),\n toolParamsDelta: ephemeral<ToolParamsDeltaPayload, ToolParamsDeltaEvent>(\n ToolParamsDeltaEvent,\n toolParamsDeltaEventType,\n ),\n toolParamsEnd: ephemeral<ToolParamsEndPayload, ToolParamsEndEvent>(\n ToolParamsEndEvent,\n toolParamsEndEventType,\n ),\n };\n }),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,IAAa,iBAAb,MAAa,uBAAuB,QAAQ,QAA6C,CAAC,CACxF,sCACF,CAAC,CAAC;CACA,OAAgB,QAAQ,cAAyB,MAAM,QAAQ,gBAAgB,EAAE,UAAU,CAAC;AAC9F;;;;;;;;AC8QA,IAAa,eAAb,MAAa,qBAAqB,QAAQ,QAAyC,CAAC,CAClF,oCACF,CAAC,CAAC;CACA,OAAgB,OAAO,MAAM,OAC3B,cACA,OAAO,IAAI,aAAa;EACtB,MAAM,EAAE,cAAc,OAAO;EAC7B,MAAM,MAAM,OAAO;EAEnB,MAAM,YAAY,eAChB,OAAO,IAAI,aAAa;GACtB,MAAM,UAAU,OAAO,IAAI,YAAY;GACvC,MAAM,QAAQ,OAAO,MAAM;GAC3B,MAAM,QAAQ,OAAO;GACrB,OAAO;IACL,WAAW;IACX,eAAe;IACf;IACA;IACA;IACA,aAAa,gBAAgB,KAAK,KAAK;IACvC;GACF;EACF,CAAC;EAEH,MAAM,SACH,gBACgB,QAAoD,UACpE,YACC,OAAO,IAAI,SAAS,UAAU,IAAI,WAChC,OAAO,KAAK;GAAE,GAAG;GAAQ;GAAM;EAAQ,CAAU,CACnD;EACJ,MAAM,UAAU,MAAM,SAAS;EAC/B,MAAM,YAAY,MAAM,WAAW;EAEnC,OAAO;GACL,iBAAiB,QACf,sBACA,wBACF;GACA,gBAAgB,QACd,qBACA,uBACF;GACA,kBAAkB,QAChB,uBACA,yBACF;GACA,eAAe,QACb,oBACA,sBACF;GACA,kBAAkB,QAChB,uBACA,yBACF;GACA,wBAAwB,QACtB,6BACA,+BACF;GACA,sBAAsB,QACpB,2BACA,6BACF;GACA,sBAAsB,QACpB,2BACA,6BACF;GACA,qBAAqB,QACnB,0BACA,4BACF;GACA,sBAAsB,QACpB,2BACA,6BACF;GACA,uBAAuB,QACrB,4BACA,8BACF;GACA,uBAAuB,QACrB,4BACA,8BACF;GACA,0BAA0B,QAGxB,+BAA+B,iCAAiC;GAClE,2BAA2B,QAGzB,gCAAgC,kCAAkC;GACpE,2BAA2B,QAGzB,gCAAgC,kCAAkC;GACpE,wBAAwB,QACtB,6BACA,+BACF;GACA,wBAAwB,QACtB,6BACA,+BACF;GACA,0BAA0B,QAGxB,+BAA+B,iCAAiC;GAClE,sBAAsB,QACpB,2BACA,6BACF;GACA,YAAY,QACV,iBACA,mBACF;GACA,cAAc,QACZ,mBACA,qBACF;GACA,WAAW,QAA0C,gBAAgB,kBAAkB;GACvF,mBAAmB,QACjB,wBACA,0BACF;GACA,gBAAgB,QACd,qBACA,uBACF;GACA,aAAa,QACX,kBACA,oBACF;GACA,eAAe,QACb,oBACA,sBACF;GACA,YAAY,QACV,iBACA,mBACF;GACA,aAAa,QACX,kBACA,oBACF;GACA,kBAAkB,QAChB,uBACA,yBACF;GACA,oBAAoB,QAClB,yBACA,2BACF;GACA,iBAAiB,QACf,sBACA,wBACF;GACA,iBAAiB,QACf,sBACA,wBACF;GACA,kBAAkB,QAChB,uBACA,yBACF;GACA,iBAAiB,QACf,sBACA,wBACF;GACA,mBAAmB,QACjB,wBACA,0BACF;GACA,gBAAgB,QACd,qBACA,uBACF;GACA,mBAAmB,QACjB,wBACA,0BACF;GACA,iBAAiB,QACf,sBACA,wBACF;GACA,qBAAqB,QACnB,0BACA,4BACF;GACA,mBAAmB,QACjB,wBACA,0BACF;GACA,gBAAgB,QACd,qBACA,uBACF;GACA,gBAAgB,QACd,qBACA,uBACF;GACA,qBAAqB,QACnB,0BACA,4BACF;GACA,kBAAkB,QAChB,uBACA,yBACF;GACA,WAAW,UAA4C,gBAAgB,kBAAkB;GACzF,gBAAgB,UACd,qBACA,uBACF;GACA,iBAAiB,UACf,sBACA,wBACF;GACA,iBAAiB,UACf,sBACA,wBACF;GACA,eAAe,UACb,oBACA,sBACF;EACF;CACF,CAAC,CACH;AACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./tracing-BwjbF285.js";
|
|
2
2
|
import "./envelope-Che6KatU.js";
|
|
3
|
-
import "./durable-
|
|
3
|
+
import "./durable-CKdCCqhw.js";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
5
5
|
//#region src/types/events/ephemeral.d.ts
|
|
6
6
|
/** Event type values for ephemeral model stream events. */
|
|
@@ -731,4 +731,4 @@ declare const EDAEphemeralEvent: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
731
731
|
type EDAEphemeralEvent = typeof EDAEphemeralEvent.Type;
|
|
732
732
|
//#endregion
|
|
733
733
|
export { toolParamsDeltaEventType as C, traceStatusEventType as E, textDeltaEventType as S, toolParamsStartEventType as T, TraceStatusEvent as _, RuntimeStatusEvent as a, reasoningDeltaEventType as b, SubscriberStatusPayload as c, ToolParamsDeltaEvent as d, ToolParamsDeltaPayload as f, ToolParamsStartPayload as g, ToolParamsStartEvent as h, ReasoningDeltaPayload as i, TextDeltaEvent as l, ToolParamsEndPayload as m, ModelStreamEvent as n, SubscriberStatusEvent as o, ToolParamsEndEvent as p, ReasoningDeltaEvent as r, SubscriberStatusKind as s, EDAEphemeralEvent as t, TextDeltaPayload as u, TraceStatusKind as v, toolParamsEndEventType as w, subscriberStatusEventType as x, TraceStatusPayload as y };
|
|
734
|
-
//# sourceMappingURL=events-
|
|
734
|
+
//# sourceMappingURL=events-BWuvzVml.d.ts.map
|