effect-durable-agent-cloudflare 0.1.0 → 0.2.0

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.
@@ -118,8 +118,36 @@ declare const SessionBatchInput: Schema.Struct<{
118
118
  }>>;
119
119
  readonly payload: Schema.Unknown;
120
120
  readonly durability: Schema.Literal<"durable">;
121
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
121
122
  }>]>>;
122
123
  }>;
124
+ /**
125
+ * One call to a registered decider, by name. `input` is the decider's input encoded with its
126
+ * `input` schema (`encodeDecideInput`). Trusted ingress, like `submitBatch`: the host authorizes.
127
+ */
128
+ declare const SessionDecideInput: Schema.Struct<{
129
+ readonly sessionId: Schema.brand<Schema.String, "SessionId">;
130
+ readonly trace: Schema.Struct<{
131
+ readonly parent: Schema.NullOr<Schema.Struct<{
132
+ readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
133
+ readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
134
+ readonly sampled: Schema.Boolean;
135
+ readonly tracestate: Schema.NullOr<Schema.String>;
136
+ }>>;
137
+ readonly links: Schema.$Array<Schema.Struct<{
138
+ readonly context: Schema.Struct<{
139
+ readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
140
+ readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
141
+ readonly sampled: Schema.Boolean;
142
+ readonly tracestate: Schema.NullOr<Schema.String>;
143
+ }>;
144
+ readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
145
+ }>>;
146
+ readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
147
+ }>;
148
+ readonly decider: Schema.NonEmptyString;
149
+ readonly input: Schema.Unknown;
150
+ }>;
123
151
  /** Waits for one command terminal after an optional durable replay position. */
124
152
  declare const SessionBlockInput: Schema.Struct<{
125
153
  readonly sessionId: Schema.brand<Schema.String, "SessionId">;
@@ -1151,6 +1179,7 @@ declare const edaSessionRpc: {
1151
1179
  }[];
1152
1180
  };
1153
1181
  readonly durability: "durable";
1182
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1154
1183
  readonly namespace: "effect-durable-agent";
1155
1184
  readonly type: "TurnAttemptStarted";
1156
1185
  readonly schemaVersion: number;
@@ -1184,6 +1213,7 @@ declare const edaSessionRpc: {
1184
1213
  }[];
1185
1214
  };
1186
1215
  readonly durability: "durable";
1216
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1187
1217
  readonly namespace: "effect-durable-agent";
1188
1218
  readonly type: "TurnAttemptCompleted";
1189
1219
  readonly schemaVersion: number;
@@ -1228,6 +1258,7 @@ declare const edaSessionRpc: {
1228
1258
  }[];
1229
1259
  };
1230
1260
  readonly durability: "durable";
1261
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1231
1262
  readonly namespace: "effect-durable-agent";
1232
1263
  readonly type: "AssistantMessageCommitted";
1233
1264
  readonly schemaVersion: number;
@@ -1401,6 +1432,7 @@ declare const edaSessionRpc: {
1401
1432
  }[];
1402
1433
  };
1403
1434
  readonly durability: "durable";
1435
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1404
1436
  readonly namespace: "effect-durable-agent";
1405
1437
  readonly type: "ToolCallCreated";
1406
1438
  readonly schemaVersion: number;
@@ -1446,6 +1478,7 @@ declare const edaSessionRpc: {
1446
1478
  }[];
1447
1479
  };
1448
1480
  readonly durability: "durable";
1481
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1449
1482
  readonly namespace: "effect-durable-agent";
1450
1483
  readonly type: "SessionConfigured";
1451
1484
  readonly schemaVersion: number;
@@ -1481,6 +1514,41 @@ declare const edaSessionRpc: {
1481
1514
  }[];
1482
1515
  };
1483
1516
  readonly durability: "durable";
1517
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1518
+ readonly namespace: "effect-durable-agent";
1519
+ readonly type: "DeciderAccepted";
1520
+ readonly schemaVersion: number;
1521
+ readonly payload: {
1522
+ readonly decider: string;
1523
+ readonly idempotencyKey: string;
1524
+ readonly result: Schema.Json;
1525
+ };
1526
+ } | {
1527
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1528
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
1529
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
1530
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
1531
+ readonly trace: {
1532
+ readonly span: {
1533
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
1534
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
1535
+ readonly sampled: boolean;
1536
+ readonly tracestate: string | null;
1537
+ };
1538
+ readonly links: readonly {
1539
+ readonly context: {
1540
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
1541
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
1542
+ readonly sampled: boolean;
1543
+ readonly tracestate: string | null;
1544
+ };
1545
+ readonly attributes: {
1546
+ readonly [x: string]: string | number | boolean;
1547
+ };
1548
+ }[];
1549
+ };
1550
+ readonly durability: "durable";
1551
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1484
1552
  readonly namespace: "effect-durable-agent";
1485
1553
  readonly type: "RunSchedulingRequested";
1486
1554
  readonly schemaVersion: number;
@@ -1521,6 +1589,7 @@ declare const edaSessionRpc: {
1521
1589
  }[];
1522
1590
  };
1523
1591
  readonly durability: "durable";
1592
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1524
1593
  readonly namespace: "effect-durable-agent";
1525
1594
  readonly type: "RunSchedulingDelivered";
1526
1595
  readonly schemaVersion: number;
@@ -1552,6 +1621,7 @@ declare const edaSessionRpc: {
1552
1621
  }[];
1553
1622
  };
1554
1623
  readonly durability: "durable";
1624
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1555
1625
  readonly namespace: "effect-durable-agent";
1556
1626
  readonly type: "RunSchedulingInvalidated";
1557
1627
  readonly schemaVersion: number;
@@ -1584,6 +1654,7 @@ declare const edaSessionRpc: {
1584
1654
  }[];
1585
1655
  };
1586
1656
  readonly durability: "durable";
1657
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1587
1658
  readonly namespace: "effect-durable-agent";
1588
1659
  readonly type: "RunSchedulingGranted";
1589
1660
  readonly schemaVersion: number;
@@ -1616,6 +1687,7 @@ declare const edaSessionRpc: {
1616
1687
  }[];
1617
1688
  };
1618
1689
  readonly durability: "durable";
1690
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1619
1691
  readonly namespace: "effect-durable-agent";
1620
1692
  readonly type: "CommandAdmitted";
1621
1693
  readonly schemaVersion: number;
@@ -1647,6 +1719,7 @@ declare const edaSessionRpc: {
1647
1719
  }[];
1648
1720
  };
1649
1721
  readonly durability: "durable";
1722
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1650
1723
  readonly namespace: "effect-durable-agent";
1651
1724
  readonly type: "CommandStarted";
1652
1725
  readonly schemaVersion: number;
@@ -1678,6 +1751,7 @@ declare const edaSessionRpc: {
1678
1751
  }[];
1679
1752
  };
1680
1753
  readonly durability: "durable";
1754
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1681
1755
  readonly namespace: "effect-durable-agent";
1682
1756
  readonly type: "CommandCompleted";
1683
1757
  readonly schemaVersion: number;
@@ -1709,6 +1783,7 @@ declare const edaSessionRpc: {
1709
1783
  }[];
1710
1784
  };
1711
1785
  readonly durability: "durable";
1786
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1712
1787
  readonly namespace: "effect-durable-agent";
1713
1788
  readonly type: "CommandFailed";
1714
1789
  readonly schemaVersion: number;
@@ -1745,6 +1820,7 @@ declare const edaSessionRpc: {
1745
1820
  }[];
1746
1821
  };
1747
1822
  readonly durability: "durable";
1823
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1748
1824
  readonly namespace: "effect-durable-agent";
1749
1825
  readonly type: "CommandCancelled";
1750
1826
  readonly schemaVersion: number;
@@ -1777,6 +1853,7 @@ declare const edaSessionRpc: {
1777
1853
  }[];
1778
1854
  };
1779
1855
  readonly durability: "durable";
1856
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1780
1857
  readonly namespace: "effect-durable-agent";
1781
1858
  readonly type: "SystemMessageCommitted";
1782
1859
  readonly schemaVersion: number;
@@ -1809,6 +1886,7 @@ declare const edaSessionRpc: {
1809
1886
  }[];
1810
1887
  };
1811
1888
  readonly durability: "durable";
1889
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1812
1890
  readonly namespace: "effect-durable-agent";
1813
1891
  readonly type: "UserMessageCommitted";
1814
1892
  readonly schemaVersion: number;
@@ -1888,6 +1966,7 @@ declare const edaSessionRpc: {
1888
1966
  }[];
1889
1967
  };
1890
1968
  readonly durability: "durable";
1969
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1891
1970
  readonly namespace: "effect-durable-agent";
1892
1971
  readonly type: "SteeringMessageQueued";
1893
1972
  readonly schemaVersion: number;
@@ -1968,6 +2047,7 @@ declare const edaSessionRpc: {
1968
2047
  }[];
1969
2048
  };
1970
2049
  readonly durability: "durable";
2050
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
1971
2051
  readonly namespace: "effect-durable-agent";
1972
2052
  readonly type: "SteeringMessageCancelled";
1973
2053
  readonly schemaVersion: number;
@@ -2001,6 +2081,7 @@ declare const edaSessionRpc: {
2001
2081
  }[];
2002
2082
  };
2003
2083
  readonly durability: "durable";
2084
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2004
2085
  readonly namespace: "effect-durable-agent";
2005
2086
  readonly type: "UserMessageSubmitted";
2006
2087
  readonly schemaVersion: number;
@@ -2081,6 +2162,7 @@ declare const edaSessionRpc: {
2081
2162
  }[];
2082
2163
  };
2083
2164
  readonly durability: "durable";
2165
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2084
2166
  readonly namespace: "effect-durable-agent";
2085
2167
  readonly type: "UserMessagePromoted";
2086
2168
  readonly schemaVersion: number;
@@ -2115,6 +2197,7 @@ declare const edaSessionRpc: {
2115
2197
  }[];
2116
2198
  };
2117
2199
  readonly durability: "durable";
2200
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2118
2201
  readonly namespace: "effect-durable-agent";
2119
2202
  readonly type: "UserMessageCancelled";
2120
2203
  readonly schemaVersion: number;
@@ -2148,6 +2231,7 @@ declare const edaSessionRpc: {
2148
2231
  }[];
2149
2232
  };
2150
2233
  readonly durability: "durable";
2234
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2151
2235
  readonly namespace: "effect-durable-agent";
2152
2236
  readonly type: "MessageQueuePaused";
2153
2237
  readonly schemaVersion: number;
@@ -2182,6 +2266,7 @@ declare const edaSessionRpc: {
2182
2266
  }[];
2183
2267
  };
2184
2268
  readonly durability: "durable";
2269
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2185
2270
  readonly namespace: "effect-durable-agent";
2186
2271
  readonly type: "PendingMessagesPaused";
2187
2272
  readonly schemaVersion: number;
@@ -2221,6 +2306,7 @@ declare const edaSessionRpc: {
2221
2306
  }[];
2222
2307
  };
2223
2308
  readonly durability: "durable";
2309
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2224
2310
  readonly namespace: "effect-durable-agent";
2225
2311
  readonly type: "AssistantMessageCommitted";
2226
2312
  readonly schemaVersion: number;
@@ -2394,6 +2480,7 @@ declare const edaSessionRpc: {
2394
2480
  }[];
2395
2481
  };
2396
2482
  readonly durability: "durable";
2483
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2397
2484
  readonly namespace: "effect-durable-agent";
2398
2485
  readonly type: "AssistantMessageImported";
2399
2486
  readonly schemaVersion: number;
@@ -2567,6 +2654,7 @@ declare const edaSessionRpc: {
2567
2654
  }[];
2568
2655
  };
2569
2656
  readonly durability: "durable";
2657
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2570
2658
  readonly namespace: "effect-durable-agent";
2571
2659
  readonly type: "AssistantPartialCommitted";
2572
2660
  readonly schemaVersion: number;
@@ -2741,6 +2829,7 @@ declare const edaSessionRpc: {
2741
2829
  }[];
2742
2830
  };
2743
2831
  readonly durability: "durable";
2832
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2744
2833
  readonly namespace: "effect-durable-agent";
2745
2834
  readonly type: "RunStarted";
2746
2835
  readonly schemaVersion: number;
@@ -2797,6 +2886,7 @@ declare const edaSessionRpc: {
2797
2886
  }[];
2798
2887
  };
2799
2888
  readonly durability: "durable";
2889
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2800
2890
  readonly namespace: "effect-durable-agent";
2801
2891
  readonly type: "RunCompleted";
2802
2892
  readonly schemaVersion: number;
@@ -2828,6 +2918,7 @@ declare const edaSessionRpc: {
2828
2918
  }[];
2829
2919
  };
2830
2920
  readonly durability: "durable";
2921
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2831
2922
  readonly namespace: "effect-durable-agent";
2832
2923
  readonly type: "RunFailed";
2833
2924
  readonly schemaVersion: number;
@@ -2864,6 +2955,7 @@ declare const edaSessionRpc: {
2864
2955
  }[];
2865
2956
  };
2866
2957
  readonly durability: "durable";
2958
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2867
2959
  readonly namespace: "effect-durable-agent";
2868
2960
  readonly type: "RunInterrupted";
2869
2961
  readonly schemaVersion: number;
@@ -2896,6 +2988,7 @@ declare const edaSessionRpc: {
2896
2988
  }[];
2897
2989
  };
2898
2990
  readonly durability: "durable";
2991
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2899
2992
  readonly namespace: "effect-durable-agent";
2900
2993
  readonly type: "RecoveryCompleted";
2901
2994
  readonly schemaVersion: number;
@@ -2932,6 +3025,7 @@ declare const edaSessionRpc: {
2932
3025
  }[];
2933
3026
  };
2934
3027
  readonly durability: "durable";
3028
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2935
3029
  readonly namespace: "effect-durable-agent";
2936
3030
  readonly type: "TurnStarted";
2937
3031
  readonly schemaVersion: number;
@@ -2965,6 +3059,7 @@ declare const edaSessionRpc: {
2965
3059
  }[];
2966
3060
  };
2967
3061
  readonly durability: "durable";
3062
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
2968
3063
  readonly namespace: "effect-durable-agent";
2969
3064
  readonly type: "TurnCompleted";
2970
3065
  readonly schemaVersion: number;
@@ -3005,6 +3100,7 @@ declare const edaSessionRpc: {
3005
3100
  }[];
3006
3101
  };
3007
3102
  readonly durability: "durable";
3103
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3008
3104
  readonly namespace: "effect-durable-agent";
3009
3105
  readonly type: "TurnFailed";
3010
3106
  readonly schemaVersion: number;
@@ -3042,6 +3138,7 @@ declare const edaSessionRpc: {
3042
3138
  }[];
3043
3139
  };
3044
3140
  readonly durability: "durable";
3141
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3045
3142
  readonly namespace: "effect-durable-agent";
3046
3143
  readonly type: "TurnStopped";
3047
3144
  readonly schemaVersion: number;
@@ -3075,6 +3172,7 @@ declare const edaSessionRpc: {
3075
3172
  }[];
3076
3173
  };
3077
3174
  readonly durability: "durable";
3175
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3078
3176
  readonly namespace: "effect-durable-agent";
3079
3177
  readonly type: "InferenceStarted";
3080
3178
  readonly schemaVersion: number;
@@ -3108,6 +3206,7 @@ declare const edaSessionRpc: {
3108
3206
  }[];
3109
3207
  };
3110
3208
  readonly durability: "durable";
3209
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3111
3210
  readonly namespace: "effect-durable-agent";
3112
3211
  readonly type: "InferenceCompleted";
3113
3212
  readonly schemaVersion: number;
@@ -3152,6 +3251,7 @@ declare const edaSessionRpc: {
3152
3251
  }[];
3153
3252
  };
3154
3253
  readonly durability: "durable";
3254
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3155
3255
  readonly namespace: "effect-durable-agent";
3156
3256
  readonly type: "InferenceFailed";
3157
3257
  readonly schemaVersion: number;
@@ -3190,6 +3290,7 @@ declare const edaSessionRpc: {
3190
3290
  }[];
3191
3291
  };
3192
3292
  readonly durability: "durable";
3293
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3193
3294
  readonly namespace: "effect-durable-agent";
3194
3295
  readonly type: "ToolCallCreated";
3195
3296
  readonly schemaVersion: number;
@@ -3235,6 +3336,7 @@ declare const edaSessionRpc: {
3235
3336
  }[];
3236
3337
  };
3237
3338
  readonly durability: "durable";
3339
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3238
3340
  readonly namespace: "effect-durable-agent";
3239
3341
  readonly type: "ToolCallRejected";
3240
3342
  readonly schemaVersion: number;
@@ -3302,6 +3404,7 @@ declare const edaSessionRpc: {
3302
3404
  }[];
3303
3405
  };
3304
3406
  readonly durability: "durable";
3407
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3305
3408
  readonly namespace: "effect-durable-agent";
3306
3409
  readonly type: "ToolCallStarted";
3307
3410
  readonly schemaVersion: number;
@@ -3334,6 +3437,7 @@ declare const edaSessionRpc: {
3334
3437
  }[];
3335
3438
  };
3336
3439
  readonly durability: "durable";
3440
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3337
3441
  readonly namespace: "effect-durable-agent";
3338
3442
  readonly type: "ToolCallCompleted";
3339
3443
  readonly schemaVersion: number;
@@ -3394,6 +3498,7 @@ declare const edaSessionRpc: {
3394
3498
  }[];
3395
3499
  };
3396
3500
  readonly durability: "durable";
3501
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3397
3502
  readonly namespace: "effect-durable-agent";
3398
3503
  readonly type: "ToolCallFailed";
3399
3504
  readonly schemaVersion: number;
@@ -3463,6 +3568,7 @@ declare const edaSessionRpc: {
3463
3568
  }[];
3464
3569
  };
3465
3570
  readonly durability: "durable";
3571
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3466
3572
  readonly namespace: "effect-durable-agent";
3467
3573
  readonly type: "StopTurnRequested";
3468
3574
  readonly schemaVersion: number;
@@ -3496,6 +3602,7 @@ declare const edaSessionRpc: {
3496
3602
  }[];
3497
3603
  };
3498
3604
  readonly durability: "durable";
3605
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3499
3606
  readonly namespace: "effect-durable-agent";
3500
3607
  readonly type: "StopTurnApplied";
3501
3608
  readonly schemaVersion: number;
@@ -3530,6 +3637,7 @@ declare const edaSessionRpc: {
3530
3637
  }[];
3531
3638
  };
3532
3639
  readonly durability: "durable";
3640
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3533
3641
  readonly namespace: "effect-durable-agent";
3534
3642
  readonly type: "ContextProjected";
3535
3643
  readonly schemaVersion: number;
@@ -3562,6 +3670,7 @@ declare const edaSessionRpc: {
3562
3670
  }[];
3563
3671
  };
3564
3672
  readonly durability: "durable";
3673
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3565
3674
  readonly namespace: "effect-durable-agent";
3566
3675
  readonly type: "CompactionRequested";
3567
3676
  readonly schemaVersion: number;
@@ -3595,6 +3704,7 @@ declare const edaSessionRpc: {
3595
3704
  }[];
3596
3705
  };
3597
3706
  readonly durability: "durable";
3707
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3598
3708
  readonly namespace: "effect-durable-agent";
3599
3709
  readonly type: "CompactionStarted";
3600
3710
  readonly schemaVersion: number;
@@ -3626,6 +3736,7 @@ declare const edaSessionRpc: {
3626
3736
  }[];
3627
3737
  };
3628
3738
  readonly durability: "durable";
3739
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3629
3740
  readonly namespace: "effect-durable-agent";
3630
3741
  readonly type: "SummaryCreated";
3631
3742
  readonly schemaVersion: number;
@@ -3661,6 +3772,7 @@ declare const edaSessionRpc: {
3661
3772
  }[];
3662
3773
  };
3663
3774
  readonly durability: "durable";
3775
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3664
3776
  readonly namespace: "effect-durable-agent";
3665
3777
  readonly type: "CompactionCompleted";
3666
3778
  readonly schemaVersion: number;
@@ -3705,6 +3817,7 @@ declare const edaSessionRpc: {
3705
3817
  }[];
3706
3818
  };
3707
3819
  readonly durability: "durable";
3820
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3708
3821
  readonly namespace: "effect-durable-agent";
3709
3822
  readonly type: "ContextRebased";
3710
3823
  readonly schemaVersion: number;
@@ -3739,6 +3852,7 @@ declare const edaSessionRpc: {
3739
3852
  }[];
3740
3853
  };
3741
3854
  readonly durability: "durable";
3855
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3742
3856
  readonly namespace: "effect-durable-agent";
3743
3857
  readonly type: "CompactionFailed";
3744
3858
  readonly schemaVersion: number;
@@ -3788,6 +3902,7 @@ declare const edaSessionRpc: {
3788
3902
  }[];
3789
3903
  };
3790
3904
  readonly durability: "durable";
3905
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3791
3906
  readonly namespace: "effect-durable-agent";
3792
3907
  readonly type: "BaseStateRequested";
3793
3908
  readonly schemaVersion: number;
@@ -3820,6 +3935,7 @@ declare const edaSessionRpc: {
3820
3935
  }[];
3821
3936
  };
3822
3937
  readonly durability: "durable";
3938
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3823
3939
  readonly namespace: "effect-durable-agent";
3824
3940
  readonly type: "BaseStateCreated";
3825
3941
  readonly schemaVersion: number;
@@ -3852,6 +3968,7 @@ declare const edaSessionRpc: {
3852
3968
  }[];
3853
3969
  };
3854
3970
  readonly durability: "durable";
3971
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3855
3972
  readonly namespace: "effect-durable-agent";
3856
3973
  readonly type: "BaseStateFailed";
3857
3974
  readonly schemaVersion: number;
@@ -3890,6 +4007,7 @@ declare const edaSessionRpc: {
3890
4007
  };
3891
4008
  readonly payload: unknown;
3892
4009
  readonly durability: "durable";
4010
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3893
4011
  readonly namespace: "__foreign";
3894
4012
  readonly type: "Foreign";
3895
4013
  readonly _tag: "Foreign";
@@ -3922,6 +4040,7 @@ declare const edaSessionRpc: {
3922
4040
  };
3923
4041
  readonly payload: unknown;
3924
4042
  readonly durability: "durable";
4043
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
3925
4044
  };
3926
4045
  readonly decoded?: unknown;
3927
4046
  }>, {
@@ -3958,6 +4077,7 @@ declare const edaSessionRpc: {
3958
4077
  };
3959
4078
  readonly payload: unknown;
3960
4079
  readonly durability: "durable";
4080
+ readonly dedupeKey?: string | undefined;
3961
4081
  };
3962
4082
  }, never, never>;
3963
4083
  };
@@ -4009,6 +4129,7 @@ declare const edaSessionRpc: {
4009
4129
  }>>;
4010
4130
  readonly payload: Schema.Unknown;
4011
4131
  readonly durability: Schema.Literal<"durable">;
4132
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
4012
4133
  }>]>>;
4013
4134
  }>;
4014
4135
  output: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
@@ -4036,6 +4157,7 @@ declare const edaSessionRpc: {
4036
4157
  }[];
4037
4158
  };
4038
4159
  readonly durability: "durable";
4160
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4039
4161
  readonly namespace: "effect-durable-agent";
4040
4162
  readonly type: "TurnAttemptStarted";
4041
4163
  readonly schemaVersion: number;
@@ -4069,6 +4191,7 @@ declare const edaSessionRpc: {
4069
4191
  }[];
4070
4192
  };
4071
4193
  readonly durability: "durable";
4194
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4072
4195
  readonly namespace: "effect-durable-agent";
4073
4196
  readonly type: "TurnAttemptCompleted";
4074
4197
  readonly schemaVersion: number;
@@ -4113,6 +4236,7 @@ declare const edaSessionRpc: {
4113
4236
  }[];
4114
4237
  };
4115
4238
  readonly durability: "durable";
4239
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4116
4240
  readonly namespace: "effect-durable-agent";
4117
4241
  readonly type: "AssistantMessageCommitted";
4118
4242
  readonly schemaVersion: number;
@@ -4286,6 +4410,7 @@ declare const edaSessionRpc: {
4286
4410
  }[];
4287
4411
  };
4288
4412
  readonly durability: "durable";
4413
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4289
4414
  readonly namespace: "effect-durable-agent";
4290
4415
  readonly type: "ToolCallCreated";
4291
4416
  readonly schemaVersion: number;
@@ -4331,6 +4456,7 @@ declare const edaSessionRpc: {
4331
4456
  }[];
4332
4457
  };
4333
4458
  readonly durability: "durable";
4459
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4334
4460
  readonly namespace: "effect-durable-agent";
4335
4461
  readonly type: "SessionConfigured";
4336
4462
  readonly schemaVersion: number;
@@ -4366,6 +4492,41 @@ declare const edaSessionRpc: {
4366
4492
  }[];
4367
4493
  };
4368
4494
  readonly durability: "durable";
4495
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4496
+ readonly namespace: "effect-durable-agent";
4497
+ readonly type: "DeciderAccepted";
4498
+ readonly schemaVersion: number;
4499
+ readonly payload: {
4500
+ readonly decider: string;
4501
+ readonly idempotencyKey: string;
4502
+ readonly result: Schema.Json;
4503
+ };
4504
+ } | {
4505
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
4506
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
4507
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
4508
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
4509
+ readonly trace: {
4510
+ readonly span: {
4511
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
4512
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
4513
+ readonly sampled: boolean;
4514
+ readonly tracestate: string | null;
4515
+ };
4516
+ readonly links: readonly {
4517
+ readonly context: {
4518
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
4519
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
4520
+ readonly sampled: boolean;
4521
+ readonly tracestate: string | null;
4522
+ };
4523
+ readonly attributes: {
4524
+ readonly [x: string]: string | number | boolean;
4525
+ };
4526
+ }[];
4527
+ };
4528
+ readonly durability: "durable";
4529
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4369
4530
  readonly namespace: "effect-durable-agent";
4370
4531
  readonly type: "RunSchedulingRequested";
4371
4532
  readonly schemaVersion: number;
@@ -4406,6 +4567,7 @@ declare const edaSessionRpc: {
4406
4567
  }[];
4407
4568
  };
4408
4569
  readonly durability: "durable";
4570
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4409
4571
  readonly namespace: "effect-durable-agent";
4410
4572
  readonly type: "RunSchedulingDelivered";
4411
4573
  readonly schemaVersion: number;
@@ -4437,6 +4599,7 @@ declare const edaSessionRpc: {
4437
4599
  }[];
4438
4600
  };
4439
4601
  readonly durability: "durable";
4602
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4440
4603
  readonly namespace: "effect-durable-agent";
4441
4604
  readonly type: "RunSchedulingInvalidated";
4442
4605
  readonly schemaVersion: number;
@@ -4469,6 +4632,7 @@ declare const edaSessionRpc: {
4469
4632
  }[];
4470
4633
  };
4471
4634
  readonly durability: "durable";
4635
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4472
4636
  readonly namespace: "effect-durable-agent";
4473
4637
  readonly type: "RunSchedulingGranted";
4474
4638
  readonly schemaVersion: number;
@@ -4501,6 +4665,7 @@ declare const edaSessionRpc: {
4501
4665
  }[];
4502
4666
  };
4503
4667
  readonly durability: "durable";
4668
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4504
4669
  readonly namespace: "effect-durable-agent";
4505
4670
  readonly type: "CommandAdmitted";
4506
4671
  readonly schemaVersion: number;
@@ -4532,6 +4697,7 @@ declare const edaSessionRpc: {
4532
4697
  }[];
4533
4698
  };
4534
4699
  readonly durability: "durable";
4700
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4535
4701
  readonly namespace: "effect-durable-agent";
4536
4702
  readonly type: "CommandStarted";
4537
4703
  readonly schemaVersion: number;
@@ -4563,6 +4729,7 @@ declare const edaSessionRpc: {
4563
4729
  }[];
4564
4730
  };
4565
4731
  readonly durability: "durable";
4732
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4566
4733
  readonly namespace: "effect-durable-agent";
4567
4734
  readonly type: "CommandCompleted";
4568
4735
  readonly schemaVersion: number;
@@ -4594,6 +4761,7 @@ declare const edaSessionRpc: {
4594
4761
  }[];
4595
4762
  };
4596
4763
  readonly durability: "durable";
4764
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4597
4765
  readonly namespace: "effect-durable-agent";
4598
4766
  readonly type: "CommandFailed";
4599
4767
  readonly schemaVersion: number;
@@ -4630,6 +4798,7 @@ declare const edaSessionRpc: {
4630
4798
  }[];
4631
4799
  };
4632
4800
  readonly durability: "durable";
4801
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4633
4802
  readonly namespace: "effect-durable-agent";
4634
4803
  readonly type: "CommandCancelled";
4635
4804
  readonly schemaVersion: number;
@@ -4662,6 +4831,7 @@ declare const edaSessionRpc: {
4662
4831
  }[];
4663
4832
  };
4664
4833
  readonly durability: "durable";
4834
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4665
4835
  readonly namespace: "effect-durable-agent";
4666
4836
  readonly type: "SystemMessageCommitted";
4667
4837
  readonly schemaVersion: number;
@@ -4694,6 +4864,7 @@ declare const edaSessionRpc: {
4694
4864
  }[];
4695
4865
  };
4696
4866
  readonly durability: "durable";
4867
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4697
4868
  readonly namespace: "effect-durable-agent";
4698
4869
  readonly type: "UserMessageCommitted";
4699
4870
  readonly schemaVersion: number;
@@ -4773,6 +4944,7 @@ declare const edaSessionRpc: {
4773
4944
  }[];
4774
4945
  };
4775
4946
  readonly durability: "durable";
4947
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4776
4948
  readonly namespace: "effect-durable-agent";
4777
4949
  readonly type: "SteeringMessageQueued";
4778
4950
  readonly schemaVersion: number;
@@ -4853,6 +5025,7 @@ declare const edaSessionRpc: {
4853
5025
  }[];
4854
5026
  };
4855
5027
  readonly durability: "durable";
5028
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4856
5029
  readonly namespace: "effect-durable-agent";
4857
5030
  readonly type: "SteeringMessageCancelled";
4858
5031
  readonly schemaVersion: number;
@@ -4886,6 +5059,7 @@ declare const edaSessionRpc: {
4886
5059
  }[];
4887
5060
  };
4888
5061
  readonly durability: "durable";
5062
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4889
5063
  readonly namespace: "effect-durable-agent";
4890
5064
  readonly type: "UserMessageSubmitted";
4891
5065
  readonly schemaVersion: number;
@@ -4966,6 +5140,7 @@ declare const edaSessionRpc: {
4966
5140
  }[];
4967
5141
  };
4968
5142
  readonly durability: "durable";
5143
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
4969
5144
  readonly namespace: "effect-durable-agent";
4970
5145
  readonly type: "UserMessagePromoted";
4971
5146
  readonly schemaVersion: number;
@@ -5000,6 +5175,7 @@ declare const edaSessionRpc: {
5000
5175
  }[];
5001
5176
  };
5002
5177
  readonly durability: "durable";
5178
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5003
5179
  readonly namespace: "effect-durable-agent";
5004
5180
  readonly type: "UserMessageCancelled";
5005
5181
  readonly schemaVersion: number;
@@ -5033,6 +5209,7 @@ declare const edaSessionRpc: {
5033
5209
  }[];
5034
5210
  };
5035
5211
  readonly durability: "durable";
5212
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5036
5213
  readonly namespace: "effect-durable-agent";
5037
5214
  readonly type: "MessageQueuePaused";
5038
5215
  readonly schemaVersion: number;
@@ -5067,6 +5244,7 @@ declare const edaSessionRpc: {
5067
5244
  }[];
5068
5245
  };
5069
5246
  readonly durability: "durable";
5247
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5070
5248
  readonly namespace: "effect-durable-agent";
5071
5249
  readonly type: "PendingMessagesPaused";
5072
5250
  readonly schemaVersion: number;
@@ -5106,6 +5284,7 @@ declare const edaSessionRpc: {
5106
5284
  }[];
5107
5285
  };
5108
5286
  readonly durability: "durable";
5287
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5109
5288
  readonly namespace: "effect-durable-agent";
5110
5289
  readonly type: "AssistantMessageCommitted";
5111
5290
  readonly schemaVersion: number;
@@ -5279,6 +5458,7 @@ declare const edaSessionRpc: {
5279
5458
  }[];
5280
5459
  };
5281
5460
  readonly durability: "durable";
5461
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5282
5462
  readonly namespace: "effect-durable-agent";
5283
5463
  readonly type: "AssistantMessageImported";
5284
5464
  readonly schemaVersion: number;
@@ -5452,6 +5632,7 @@ declare const edaSessionRpc: {
5452
5632
  }[];
5453
5633
  };
5454
5634
  readonly durability: "durable";
5635
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5455
5636
  readonly namespace: "effect-durable-agent";
5456
5637
  readonly type: "AssistantPartialCommitted";
5457
5638
  readonly schemaVersion: number;
@@ -5626,6 +5807,7 @@ declare const edaSessionRpc: {
5626
5807
  }[];
5627
5808
  };
5628
5809
  readonly durability: "durable";
5810
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5629
5811
  readonly namespace: "effect-durable-agent";
5630
5812
  readonly type: "RunStarted";
5631
5813
  readonly schemaVersion: number;
@@ -5682,6 +5864,7 @@ declare const edaSessionRpc: {
5682
5864
  }[];
5683
5865
  };
5684
5866
  readonly durability: "durable";
5867
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5685
5868
  readonly namespace: "effect-durable-agent";
5686
5869
  readonly type: "RunCompleted";
5687
5870
  readonly schemaVersion: number;
@@ -5713,6 +5896,7 @@ declare const edaSessionRpc: {
5713
5896
  }[];
5714
5897
  };
5715
5898
  readonly durability: "durable";
5899
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5716
5900
  readonly namespace: "effect-durable-agent";
5717
5901
  readonly type: "RunFailed";
5718
5902
  readonly schemaVersion: number;
@@ -5749,6 +5933,7 @@ declare const edaSessionRpc: {
5749
5933
  }[];
5750
5934
  };
5751
5935
  readonly durability: "durable";
5936
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5752
5937
  readonly namespace: "effect-durable-agent";
5753
5938
  readonly type: "RunInterrupted";
5754
5939
  readonly schemaVersion: number;
@@ -5781,6 +5966,7 @@ declare const edaSessionRpc: {
5781
5966
  }[];
5782
5967
  };
5783
5968
  readonly durability: "durable";
5969
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5784
5970
  readonly namespace: "effect-durable-agent";
5785
5971
  readonly type: "RecoveryCompleted";
5786
5972
  readonly schemaVersion: number;
@@ -5817,6 +6003,7 @@ declare const edaSessionRpc: {
5817
6003
  }[];
5818
6004
  };
5819
6005
  readonly durability: "durable";
6006
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5820
6007
  readonly namespace: "effect-durable-agent";
5821
6008
  readonly type: "TurnStarted";
5822
6009
  readonly schemaVersion: number;
@@ -5850,6 +6037,7 @@ declare const edaSessionRpc: {
5850
6037
  }[];
5851
6038
  };
5852
6039
  readonly durability: "durable";
6040
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5853
6041
  readonly namespace: "effect-durable-agent";
5854
6042
  readonly type: "TurnCompleted";
5855
6043
  readonly schemaVersion: number;
@@ -5890,6 +6078,7 @@ declare const edaSessionRpc: {
5890
6078
  }[];
5891
6079
  };
5892
6080
  readonly durability: "durable";
6081
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5893
6082
  readonly namespace: "effect-durable-agent";
5894
6083
  readonly type: "TurnFailed";
5895
6084
  readonly schemaVersion: number;
@@ -5927,6 +6116,7 @@ declare const edaSessionRpc: {
5927
6116
  }[];
5928
6117
  };
5929
6118
  readonly durability: "durable";
6119
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5930
6120
  readonly namespace: "effect-durable-agent";
5931
6121
  readonly type: "TurnStopped";
5932
6122
  readonly schemaVersion: number;
@@ -5960,6 +6150,7 @@ declare const edaSessionRpc: {
5960
6150
  }[];
5961
6151
  };
5962
6152
  readonly durability: "durable";
6153
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5963
6154
  readonly namespace: "effect-durable-agent";
5964
6155
  readonly type: "InferenceStarted";
5965
6156
  readonly schemaVersion: number;
@@ -5993,6 +6184,7 @@ declare const edaSessionRpc: {
5993
6184
  }[];
5994
6185
  };
5995
6186
  readonly durability: "durable";
6187
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
5996
6188
  readonly namespace: "effect-durable-agent";
5997
6189
  readonly type: "InferenceCompleted";
5998
6190
  readonly schemaVersion: number;
@@ -6037,6 +6229,7 @@ declare const edaSessionRpc: {
6037
6229
  }[];
6038
6230
  };
6039
6231
  readonly durability: "durable";
6232
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6040
6233
  readonly namespace: "effect-durable-agent";
6041
6234
  readonly type: "InferenceFailed";
6042
6235
  readonly schemaVersion: number;
@@ -6075,6 +6268,7 @@ declare const edaSessionRpc: {
6075
6268
  }[];
6076
6269
  };
6077
6270
  readonly durability: "durable";
6271
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6078
6272
  readonly namespace: "effect-durable-agent";
6079
6273
  readonly type: "ToolCallCreated";
6080
6274
  readonly schemaVersion: number;
@@ -6120,6 +6314,7 @@ declare const edaSessionRpc: {
6120
6314
  }[];
6121
6315
  };
6122
6316
  readonly durability: "durable";
6317
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6123
6318
  readonly namespace: "effect-durable-agent";
6124
6319
  readonly type: "ToolCallRejected";
6125
6320
  readonly schemaVersion: number;
@@ -6187,6 +6382,7 @@ declare const edaSessionRpc: {
6187
6382
  }[];
6188
6383
  };
6189
6384
  readonly durability: "durable";
6385
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6190
6386
  readonly namespace: "effect-durable-agent";
6191
6387
  readonly type: "ToolCallStarted";
6192
6388
  readonly schemaVersion: number;
@@ -6219,6 +6415,7 @@ declare const edaSessionRpc: {
6219
6415
  }[];
6220
6416
  };
6221
6417
  readonly durability: "durable";
6418
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6222
6419
  readonly namespace: "effect-durable-agent";
6223
6420
  readonly type: "ToolCallCompleted";
6224
6421
  readonly schemaVersion: number;
@@ -6279,6 +6476,7 @@ declare const edaSessionRpc: {
6279
6476
  }[];
6280
6477
  };
6281
6478
  readonly durability: "durable";
6479
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6282
6480
  readonly namespace: "effect-durable-agent";
6283
6481
  readonly type: "ToolCallFailed";
6284
6482
  readonly schemaVersion: number;
@@ -6348,6 +6546,7 @@ declare const edaSessionRpc: {
6348
6546
  }[];
6349
6547
  };
6350
6548
  readonly durability: "durable";
6549
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6351
6550
  readonly namespace: "effect-durable-agent";
6352
6551
  readonly type: "StopTurnRequested";
6353
6552
  readonly schemaVersion: number;
@@ -6381,6 +6580,7 @@ declare const edaSessionRpc: {
6381
6580
  }[];
6382
6581
  };
6383
6582
  readonly durability: "durable";
6583
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6384
6584
  readonly namespace: "effect-durable-agent";
6385
6585
  readonly type: "StopTurnApplied";
6386
6586
  readonly schemaVersion: number;
@@ -6415,6 +6615,7 @@ declare const edaSessionRpc: {
6415
6615
  }[];
6416
6616
  };
6417
6617
  readonly durability: "durable";
6618
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6418
6619
  readonly namespace: "effect-durable-agent";
6419
6620
  readonly type: "ContextProjected";
6420
6621
  readonly schemaVersion: number;
@@ -6447,6 +6648,7 @@ declare const edaSessionRpc: {
6447
6648
  }[];
6448
6649
  };
6449
6650
  readonly durability: "durable";
6651
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6450
6652
  readonly namespace: "effect-durable-agent";
6451
6653
  readonly type: "CompactionRequested";
6452
6654
  readonly schemaVersion: number;
@@ -6480,6 +6682,7 @@ declare const edaSessionRpc: {
6480
6682
  }[];
6481
6683
  };
6482
6684
  readonly durability: "durable";
6685
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6483
6686
  readonly namespace: "effect-durable-agent";
6484
6687
  readonly type: "CompactionStarted";
6485
6688
  readonly schemaVersion: number;
@@ -6511,6 +6714,7 @@ declare const edaSessionRpc: {
6511
6714
  }[];
6512
6715
  };
6513
6716
  readonly durability: "durable";
6717
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6514
6718
  readonly namespace: "effect-durable-agent";
6515
6719
  readonly type: "SummaryCreated";
6516
6720
  readonly schemaVersion: number;
@@ -6546,6 +6750,7 @@ declare const edaSessionRpc: {
6546
6750
  }[];
6547
6751
  };
6548
6752
  readonly durability: "durable";
6753
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6549
6754
  readonly namespace: "effect-durable-agent";
6550
6755
  readonly type: "CompactionCompleted";
6551
6756
  readonly schemaVersion: number;
@@ -6590,6 +6795,7 @@ declare const edaSessionRpc: {
6590
6795
  }[];
6591
6796
  };
6592
6797
  readonly durability: "durable";
6798
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6593
6799
  readonly namespace: "effect-durable-agent";
6594
6800
  readonly type: "ContextRebased";
6595
6801
  readonly schemaVersion: number;
@@ -6624,6 +6830,7 @@ declare const edaSessionRpc: {
6624
6830
  }[];
6625
6831
  };
6626
6832
  readonly durability: "durable";
6833
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6627
6834
  readonly namespace: "effect-durable-agent";
6628
6835
  readonly type: "CompactionFailed";
6629
6836
  readonly schemaVersion: number;
@@ -6673,6 +6880,7 @@ declare const edaSessionRpc: {
6673
6880
  }[];
6674
6881
  };
6675
6882
  readonly durability: "durable";
6883
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6676
6884
  readonly namespace: "effect-durable-agent";
6677
6885
  readonly type: "BaseStateRequested";
6678
6886
  readonly schemaVersion: number;
@@ -6705,6 +6913,7 @@ declare const edaSessionRpc: {
6705
6913
  }[];
6706
6914
  };
6707
6915
  readonly durability: "durable";
6916
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6708
6917
  readonly namespace: "effect-durable-agent";
6709
6918
  readonly type: "BaseStateCreated";
6710
6919
  readonly schemaVersion: number;
@@ -6737,6 +6946,7 @@ declare const edaSessionRpc: {
6737
6946
  }[];
6738
6947
  };
6739
6948
  readonly durability: "durable";
6949
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6740
6950
  readonly namespace: "effect-durable-agent";
6741
6951
  readonly type: "BaseStateFailed";
6742
6952
  readonly schemaVersion: number;
@@ -6775,6 +6985,7 @@ declare const edaSessionRpc: {
6775
6985
  };
6776
6986
  readonly payload: unknown;
6777
6987
  readonly durability: "durable";
6988
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6778
6989
  readonly namespace: "__foreign";
6779
6990
  readonly type: "Foreign";
6780
6991
  readonly _tag: "Foreign";
@@ -6807,6 +7018,7 @@ declare const edaSessionRpc: {
6807
7018
  };
6808
7019
  readonly payload: unknown;
6809
7020
  readonly durability: "durable";
7021
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
6810
7022
  };
6811
7023
  readonly decoded?: unknown;
6812
7024
  }>, {
@@ -6843,9 +7055,42 @@ declare const edaSessionRpc: {
6843
7055
  };
6844
7056
  readonly payload: unknown;
6845
7057
  readonly durability: "durable";
7058
+ readonly dedupeKey?: string | undefined;
6846
7059
  };
6847
7060
  }, never, never>>;
6848
7061
  };
7062
+ decide: {
7063
+ input: Schema.Struct<{
7064
+ readonly sessionId: Schema.brand<Schema.String, "SessionId">;
7065
+ readonly trace: Schema.Struct<{
7066
+ readonly parent: Schema.NullOr<Schema.Struct<{
7067
+ readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
7068
+ readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
7069
+ readonly sampled: Schema.Boolean;
7070
+ readonly tracestate: Schema.NullOr<Schema.String>;
7071
+ }>>;
7072
+ readonly links: Schema.$Array<Schema.Struct<{
7073
+ readonly context: Schema.Struct<{
7074
+ readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
7075
+ readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
7076
+ readonly sampled: Schema.Boolean;
7077
+ readonly tracestate: Schema.NullOr<Schema.String>;
7078
+ }>;
7079
+ readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
7080
+ }>>;
7081
+ readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
7082
+ }>;
7083
+ readonly decider: Schema.NonEmptyString;
7084
+ readonly input: Schema.Unknown;
7085
+ }>;
7086
+ output: Schema.Union<readonly [Schema.TaggedStruct<"Accepted", {
7087
+ readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
7088
+ readonly acceptedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
7089
+ readonly replayed: Schema.Boolean;
7090
+ }>, Schema.TaggedStruct<"Rejected", {
7091
+ readonly rejection: Schema.Codec<Schema.Json, Schema.Json, never, never>;
7092
+ }>]>;
7093
+ };
6849
7094
  submitAndBlock: {
6850
7095
  input: Schema.Struct<{
6851
7096
  readonly sessionId: Schema.brand<Schema.String, "SessionId">;
@@ -6897,6 +7142,7 @@ declare const edaSessionRpc: {
6897
7142
  }>>;
6898
7143
  }>>;
6899
7144
  readonly durability: Schema.Literal<"durable">;
7145
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
6900
7146
  readonly namespace: Schema.Literal<"effect-durable-agent">;
6901
7147
  readonly type: Schema.Literal<"CommandCompleted">;
6902
7148
  readonly schemaVersion: Schema.Literal<number>;
@@ -6926,6 +7172,7 @@ declare const edaSessionRpc: {
6926
7172
  }>>;
6927
7173
  }>>;
6928
7174
  readonly durability: Schema.Literal<"durable">;
7175
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
6929
7176
  readonly namespace: Schema.Literal<"effect-durable-agent">;
6930
7177
  readonly type: Schema.Literal<"CommandFailed">;
6931
7178
  readonly schemaVersion: Schema.Literal<number>;
@@ -6960,6 +7207,7 @@ declare const edaSessionRpc: {
6960
7207
  }>>;
6961
7208
  }>>;
6962
7209
  readonly durability: Schema.Literal<"durable">;
7210
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
6963
7211
  readonly namespace: Schema.Literal<"effect-durable-agent">;
6964
7212
  readonly type: Schema.Literal<"CommandCancelled">;
6965
7213
  readonly schemaVersion: Schema.Literal<number>;
@@ -7022,6 +7270,7 @@ declare const edaSessionRpc: {
7022
7270
  }>>;
7023
7271
  }>>;
7024
7272
  readonly durability: Schema.Literal<"durable">;
7273
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
7025
7274
  readonly namespace: Schema.Literal<"effect-durable-agent">;
7026
7275
  readonly type: Schema.Literal<"CommandCompleted">;
7027
7276
  readonly schemaVersion: Schema.Literal<number>;
@@ -7051,6 +7300,7 @@ declare const edaSessionRpc: {
7051
7300
  }>>;
7052
7301
  }>>;
7053
7302
  readonly durability: Schema.Literal<"durable">;
7303
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
7054
7304
  readonly namespace: Schema.Literal<"effect-durable-agent">;
7055
7305
  readonly type: Schema.Literal<"CommandFailed">;
7056
7306
  readonly schemaVersion: Schema.Literal<number>;
@@ -7085,6 +7335,7 @@ declare const edaSessionRpc: {
7085
7335
  }>>;
7086
7336
  }>>;
7087
7337
  readonly durability: Schema.Literal<"durable">;
7338
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
7088
7339
  readonly namespace: Schema.Literal<"effect-durable-agent">;
7089
7340
  readonly type: Schema.Literal<"CommandCancelled">;
7090
7341
  readonly schemaVersion: Schema.Literal<number>;
@@ -8884,5 +9135,5 @@ declare const edaSessionRpc: {
8884
9135
  };
8885
9136
  };
8886
9137
  //#endregion
8887
- export { SessionOutcomeInput as a, SessionTranscriptBodyResult as c, SessionTranscriptWindowInput as d, SessionTranscriptWindowResult as f, SessionGrantRunInput as i, SessionTranscriptSummaryInput as l, edaSessionRpc as m, SessionBlockInput as n, SessionScopedInput as o, TranscriptCompactionSummary as p, SessionCommandInput as r, SessionTranscriptBodyInput as s, SessionBatchInput as t, SessionTranscriptSummaryResult as u };
8888
- //# sourceMappingURL=rpc-spec-O5conxmN.d.ts.map
9138
+ export { SessionGrantRunInput as a, SessionTranscriptBodyInput as c, SessionTranscriptSummaryResult as d, SessionTranscriptWindowInput as f, edaSessionRpc as h, SessionDecideInput as i, SessionTranscriptBodyResult as l, TranscriptCompactionSummary as m, SessionBlockInput as n, SessionOutcomeInput as o, SessionTranscriptWindowResult as p, SessionCommandInput as r, SessionScopedInput as s, SessionBatchInput as t, SessionTranscriptSummaryInput as u };
9139
+ //# sourceMappingURL=rpc-spec-NAf8Yjnd.d.ts.map