effect-agent 0.1.0-beta.93 → 0.1.0-beta.95

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.
Files changed (146) hide show
  1. package/dist/{Agent-RklVROrm.mjs → Agent-CG_VMrtA.mjs} +2 -2
  2. package/dist/{Agent-RklVROrm.mjs.map → Agent-CG_VMrtA.mjs.map} +1 -1
  3. package/dist/{Agent-CN0EWRsR.d.mts → Agent-CM6JubNX.d.mts} +2 -2
  4. package/dist/{AgentPolicy-CetmQrf3.d.mts → AgentPolicy-BqDoSXO6.d.mts} +2 -2
  5. package/dist/{AgentRuntime-BPjQM1Nv.mjs → AgentRuntime-Cdvqw7l_.mjs} +88 -32
  6. package/dist/AgentRuntime-Cdvqw7l_.mjs.map +1 -0
  7. package/dist/{AgentRuntime-uxR_a4VM.d.mts → AgentRuntime-CufqQ4JM.d.mts} +8 -8
  8. package/dist/{ContextCompactor-Dxu5zhOL.d.mts → ContextCompactor-WwSIG_Z2.d.mts} +2 -2
  9. package/dist/{DurableAgentRuntime-CdrBuKZY.mjs → DurableAgentRuntime-BaGsWDHO.mjs} +9 -5
  10. package/dist/DurableAgentRuntime-BaGsWDHO.mjs.map +1 -0
  11. package/dist/{EventSource-c6GRTCsl.d.mts → EventSource-DVfX1GRH.d.mts} +3 -3
  12. package/dist/{Messaging-CkcIdt4I.d.mts → Messaging-QMYhp297.d.mts} +3 -3
  13. package/dist/{MessagingHost-CRk0kXzT.d.mts → MessagingHost-gAxs5gme.d.mts} +3 -3
  14. package/dist/{Output-D6SkedVx.d.mts → Output-CjocJzsl.d.mts} +2 -2
  15. package/dist/{PreparedInputAdmission-QzFbW2LQ.d.mts → PreparedInputAdmission-DoWaMC2R.d.mts} +4 -4
  16. package/dist/{Records-vFp_ZQ9Y.d.mts → Records-B84j3Jq_.d.mts} +21 -9
  17. package/dist/{Records-C9cezOEf.mjs → Records-CsEsSW2o.mjs} +5 -2
  18. package/dist/Records-CsEsSW2o.mjs.map +1 -0
  19. package/dist/{RunJournal-lwbrh2hZ.mjs → RunJournal-yYpUlTOE.mjs} +3 -2
  20. package/dist/RunJournal-yYpUlTOE.mjs.map +1 -0
  21. package/dist/{RunOptions-g1aigcKI.d.mts → RunOptions-CE-G3niT.d.mts} +14 -8
  22. package/dist/{Schedule-BkZvKyMw.d.mts → Schedule-DCYBfhgT.d.mts} +2 -2
  23. package/dist/{Scheduling-D0QqOoeT.mjs → Scheduling-CUuYc3-D.mjs} +3 -3
  24. package/dist/{Scheduling-D0QqOoeT.mjs.map → Scheduling-CUuYc3-D.mjs.map} +1 -1
  25. package/dist/{Subagent-CnTzCy8k.mjs → Subagent-Cbfzylz1.mjs} +3 -3
  26. package/dist/{Subagent-CnTzCy8k.mjs.map → Subagent-Cbfzylz1.mjs.map} +1 -1
  27. package/dist/{Subagent-DyfzHNdv.d.mts → Subagent-DscbtbNY.d.mts} +6 -6
  28. package/dist/{SubagentHost-CJUBQlcc.d.mts → SubagentHost-DaFMZnVR.d.mts} +4 -4
  29. package/dist/{Subscription-CKQ0KDHN.d.mts → Subscription-C8IHdmFk.d.mts} +4 -4
  30. package/dist/{SubscriptionInput-Cth8F_7b.d.mts → SubscriptionInput-DhM3jUW2.d.mts} +3 -3
  31. package/dist/{ToolResult-DmmgoChv.d.mts → ToolResult-BKdqWRff.d.mts} +20 -3
  32. package/dist/{Worker-CaPYykpe.d.mts → Worker--j87JI__.d.mts} +2 -2
  33. package/dist/capabilities/Approval.mjs +1 -1
  34. package/dist/capabilities/Commands.d.mts +1 -1
  35. package/dist/capabilities/Messaging.d.mts +2 -2
  36. package/dist/capabilities/ModelContext.mjs +1 -1
  37. package/dist/capabilities/RunHooks.d.mts +1 -1
  38. package/dist/capabilities/Subagent.d.mts +2 -2
  39. package/dist/capabilities/Subagent.mjs +1 -1
  40. package/dist/capabilities/ToolDiscovery.d.mts +19 -4
  41. package/dist/capabilities/ToolDiscovery.mjs +33 -14
  42. package/dist/capabilities/ToolDiscovery.mjs.map +1 -1
  43. package/dist/core/Agent.d.mts +1 -1
  44. package/dist/core/Agent.mjs +1 -1
  45. package/dist/core/AgentPolicy.d.mts +1 -1
  46. package/dist/core/Thread.mjs +1 -1
  47. package/dist/core/ToolResult.d.mts +2 -2
  48. package/dist/core/ToolResult.mjs +17 -1
  49. package/dist/core/ToolResult.mjs.map +1 -1
  50. package/dist/core/Worker.d.mts +1 -1
  51. package/dist/core/Worker.mjs +1 -1
  52. package/dist/durable/ActivityStore.d.mts +1 -1
  53. package/dist/durable/ActivityStore.mjs +1 -1
  54. package/dist/durable/Admin.d.mts +1 -1
  55. package/dist/durable/Admin.mjs +1 -1
  56. package/dist/durable/AgentRegistration.d.mts +1 -1
  57. package/dist/durable/Certification.d.mts +1 -1
  58. package/dist/durable/CommittedActivity.d.mts +1 -1
  59. package/dist/durable/CommittedActivity.mjs +1 -1
  60. package/dist/durable/Digest.d.mts +1 -1
  61. package/dist/durable/Digest.mjs +1 -1
  62. package/dist/durable/DurableAgentRuntime.d.mts +1 -1
  63. package/dist/durable/DurableAgentRuntime.mjs +1 -1
  64. package/dist/durable/EventSource.d.mts +1 -1
  65. package/dist/durable/EventSource.mjs +1 -1
  66. package/dist/durable/GitHubWorkflowSource.d.mts +3 -3
  67. package/dist/durable/GitHubWorkflowSource.mjs +1 -1
  68. package/dist/durable/MessageDelivery.d.mts +23 -23
  69. package/dist/durable/MessageDelivery.mjs +1 -1
  70. package/dist/durable/MessageDeliveryStoreConformance.d.mts +40 -40
  71. package/dist/durable/MessageDeliveryStoreConformance.mjs +1 -1
  72. package/dist/durable/PersistentHistory.d.mts +1 -1
  73. package/dist/durable/PersistentHistory.mjs +2 -2
  74. package/dist/durable/PreparedInputAdmission.d.mts +1 -1
  75. package/dist/durable/Records.d.mts +1 -1
  76. package/dist/durable/Records.mjs +1 -1
  77. package/dist/durable/Recovery.d.mts +1 -1
  78. package/dist/durable/Recovery.mjs +1 -1
  79. package/dist/durable/RunJournal.d.mts +1 -1
  80. package/dist/durable/RunJournal.mjs +1 -1
  81. package/dist/durable/Schedule.d.mts +1 -1
  82. package/dist/durable/Schedule.mjs +1 -1
  83. package/dist/durable/ScheduleStoreConformance.d.mts +1 -1
  84. package/dist/durable/ScheduleStoreConformance.mjs +1 -1
  85. package/dist/durable/ScheduleTransition.d.mts +1 -1
  86. package/dist/durable/ScheduleTransition.mjs +1 -1
  87. package/dist/durable/Scheduling.d.mts +2 -2
  88. package/dist/durable/Scheduling.mjs +1 -1
  89. package/dist/durable/SqlStorageV2Upgrade.d.mts +2 -2
  90. package/dist/durable/SqlStorageV2Upgrade.mjs +1 -1
  91. package/dist/durable/SqlSubscriptionStore.d.mts +2 -2
  92. package/dist/durable/SqlSubscriptionStore.mjs +1 -1
  93. package/dist/durable/SubmissionLedger.d.mts +1 -1
  94. package/dist/durable/SubmissionLedger.mjs +1 -1
  95. package/dist/durable/SubmissionLedgerConformance.d.mts +1 -1
  96. package/dist/durable/SubmissionLedgerConformance.mjs +2 -2
  97. package/dist/durable/SubmissionStatus.d.mts +1 -1
  98. package/dist/durable/Subscription.d.mts +1 -1
  99. package/dist/durable/Subscription.mjs +1 -1
  100. package/dist/durable/SubscriptionInput.d.mts +1 -1
  101. package/dist/durable/SubscriptionInput.mjs +1 -1
  102. package/dist/durable/SubscriptionStoreConformance.d.mts +1 -1
  103. package/dist/durable/SubscriptionStoreConformance.mjs +1 -1
  104. package/dist/durable/SubscriptionTools.d.mts +3 -3
  105. package/dist/durable/SubscriptionTransition.d.mts +1 -1
  106. package/dist/durable/SubscriptionTransition.mjs +1 -1
  107. package/dist/durable/Subscriptions.d.mts +5 -5
  108. package/dist/durable/Subscriptions.mjs +2 -2
  109. package/dist/durable/ThreadContextHistory.d.mts +1 -1
  110. package/dist/durable/ThreadContextHistory.mjs +1 -1
  111. package/dist/durable/ThreadContextHistoryProjection.d.mts +1 -1
  112. package/dist/durable/ThreadContextHistoryProjection.mjs +1 -1
  113. package/dist/durable/ThreadInvariants.d.mts +1 -1
  114. package/dist/durable/ThreadInvariants.mjs +1 -1
  115. package/dist/durable/ThreadProjection.d.mts +1 -1
  116. package/dist/durable/ThreadProjection.mjs +1 -1
  117. package/dist/durable/ThreadProjectionMaintenance.d.mts +1 -1
  118. package/dist/durable/ThreadStore.d.mts +1 -1
  119. package/dist/durable/ThreadStore.mjs +1 -1
  120. package/dist/durable/ThreadStoreConformance.d.mts +1 -1
  121. package/dist/durable/ThreadStoreConformance.mjs +1 -1
  122. package/dist/durable/ToolReconciler.mjs +1 -1
  123. package/dist/durable/WorkerHost.d.mts +4 -4
  124. package/dist/engine/AgentRuntime.d.mts +1 -1
  125. package/dist/engine/AgentRuntime.mjs +1 -1
  126. package/dist/engine/Compaction.d.mts +1 -1
  127. package/dist/engine/ContextCompactor.d.mts +1 -1
  128. package/dist/engine/MessagingHost.d.mts +1 -1
  129. package/dist/engine/Output.d.mts +1 -1
  130. package/dist/engine/RunOptions.d.mts +1 -1
  131. package/dist/engine/RunOptions.mjs.map +1 -1
  132. package/dist/engine/SubagentHost.d.mts +1 -1
  133. package/dist/index.d.mts +18 -18
  134. package/dist/index.mjs +8 -8
  135. package/package.json +1 -1
  136. package/src/capabilities/ToolDiscovery.ts +48 -18
  137. package/src/core/ToolResult.ts +20 -0
  138. package/src/durable/DurableAgentRuntime.ts +7 -0
  139. package/src/durable/Records.ts +3 -0
  140. package/src/durable/RunJournal.ts +5 -0
  141. package/src/engine/RunOptions.ts +9 -3
  142. package/src/engine/internal/agent-runtime.ts +254 -67
  143. package/dist/AgentRuntime-BPjQM1Nv.mjs.map +0 -1
  144. package/dist/DurableAgentRuntime-CdrBuKZY.mjs.map +0 -1
  145. package/dist/Records-C9cezOEf.mjs.map +0 -1
  146. package/dist/RunJournal-lwbrh2hZ.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
- import { Cr as RetryCommand, Dr as predictRecoveryDisposition, Er as obligationSeverityOf, Or as recoveryDecisionMeaning, Sr as RecoveryExplanation, Tr as RetryRefused, _r as ObligationReport, br as RECOVERY_DECISION_MEANINGS, cr as ExplainedEvidence, dr as IntegrityCheck, fr as IntegrityCheckName, gr as ObligationEntry, hr as ObligationBlockedOn, kr as renderRecoveryExplanation, lr as ExplainedSubmission, mr as IntegrityReport, pr as IntegrityCheckStatus, ur as ExplainedUnknownCall, vr as ObligationSeverity, wr as RetryRefusalReason, xr as RecoveryDisposition, yr as ObligationThresholds } from "../Records-vFp_ZQ9Y.mjs";
1
+ import { Cr as RetryCommand, Dr as predictRecoveryDisposition, Er as obligationSeverityOf, Or as recoveryDecisionMeaning, Sr as RecoveryExplanation, Tr as RetryRefused, _r as ObligationReport, br as RECOVERY_DECISION_MEANINGS, cr as ExplainedEvidence, dr as IntegrityCheck, fr as IntegrityCheckName, gr as ObligationEntry, hr as ObligationBlockedOn, kr as renderRecoveryExplanation, lr as ExplainedSubmission, mr as IntegrityReport, pr as IntegrityCheckStatus, ur as ExplainedUnknownCall, vr as ObligationSeverity, wr as RetryRefusalReason, xr as RecoveryDisposition, yr as ObligationThresholds } from "../Records-B84j3Jq_.mjs";
2
2
  export { ExplainedEvidence, ExplainedSubmission, ExplainedUnknownCall, IntegrityCheck, IntegrityCheckName, IntegrityCheckStatus, IntegrityReport, ObligationBlockedOn, ObligationEntry, ObligationReport, ObligationSeverity, ObligationThresholds, RECOVERY_DECISION_MEANINGS, RecoveryDisposition, RecoveryExplanation, RetryCommand, RetryRefusalReason, RetryRefused, obligationSeverityOf, predictRecoveryDisposition, recoveryDecisionMeaning, renderRecoveryExplanation };
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { SubmissionId, ThreadId, ToolCallId } from "../core/Identifiers.mjs";
3
3
  import { QueueSequence } from "../core/Receipt.mjs";
4
- import { L as SettlementOutcome, Q as ToolCallUnknown, u as CanonicalSequence } from "../Records-C9cezOEf.mjs";
4
+ import { L as SettlementOutcome, Q as ToolCallUnknown, u as CanonicalSequence } from "../Records-CsEsSW2o.mjs";
5
5
  import { AbortCommand, AbortIntent, ApprovalDecisionIntent, ChildAttachmentSnapshot, JoinSnapshot, ParentLinkage, SubmissionState, SuspensionSnapshot, UnknownResolutionIntent } from "./SubmissionLedger.mjs";
6
6
  import { OpenDelegationCallEvidence, OpenToolCallEvidence, PendingApprovalEvidence, RecoveryDecision } from "./Recovery.mjs";
7
7
  import { DateTime, Schema } from "effect";
@@ -1,2 +1,2 @@
1
- import { Br as definitionDigestsEqual, Fr as DurableBindingFailure, Ir as DurableWorkerBinding, Lr as ExecutableAgentBinding, Mr as AgentRegistration, Nr as BindingDigestMismatch, Pr as BindingUnavailable, Rr as ResolvedBinding, jr as AgentAttemptContext, zr as compileRegistrations } from "../Records-vFp_ZQ9Y.mjs";
1
+ import { Br as definitionDigestsEqual, Fr as DurableBindingFailure, Ir as DurableWorkerBinding, Lr as ExecutableAgentBinding, Mr as AgentRegistration, Nr as BindingDigestMismatch, Pr as BindingUnavailable, Rr as ResolvedBinding, jr as AgentAttemptContext, zr as compileRegistrations } from "../Records-B84j3Jq_.mjs";
2
2
  export { type AgentAttemptContext, type AgentRegistration, BindingDigestMismatch, BindingUnavailable, type DurableBindingFailure, DurableWorkerBinding, type ExecutableAgentBinding, type ResolvedBinding, compileRegistrations, definitionDigestsEqual };
@@ -1,4 +1,4 @@
1
- import { Va as SubmissionLedger, nn as ThreadStore } from "../Records-vFp_ZQ9Y.mjs";
1
+ import { Va as SubmissionLedger, nn as ThreadStore } from "../Records-B84j3Jq_.mjs";
2
2
  import { Crypto, Effect, Schema } from "effect";
3
3
  //#region src/durable/Certification.d.ts
4
4
  declare const CertifiedAdapterIdentity_base: Schema.Class<CertifiedAdapterIdentity, Schema.Struct<{
@@ -1,4 +1,4 @@
1
- import { O as PersistedJson, Qt as ThreadNotMaterialized, Vr as DigestError, l as CanonicalRecordEnvelope, nn as ThreadStore, rn as ThreadStoreError } from "../Records-vFp_ZQ9Y.mjs";
1
+ import { O as PersistedJson, Qt as ThreadNotMaterialized, Vr as DigestError, l as CanonicalRecordEnvelope, nn as ThreadStore, rn as ThreadStoreError } from "../Records-B84j3Jq_.mjs";
2
2
  import { ActivityProcessorKey, ActivityProcessorStore, ActivityStoreFailure, PreparedActivity } from "./ActivityStore.mjs";
3
3
  import { Crypto, Effect, Schema, Scope } from "effect";
4
4
  declare namespace CommittedActivity_d_exports {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
2
- import { O as RecordEnvelope, T as PersistedJson, c as CanonicalRecordEnvelope, u as CanonicalSequence } from "../Records-C9cezOEf.mjs";
2
+ import { O as RecordEnvelope, T as PersistedJson, c as CanonicalRecordEnvelope, u as CanonicalSequence } from "../Records-CsEsSW2o.mjs";
3
3
  import { ActivityClaim, ActivityClaimRequest, ActivityProcessorKey, ActivityProcessorStore, PreparedActivity } from "./ActivityStore.mjs";
4
4
  import { digestJson } from "./Digest.mjs";
5
5
  import { ThreadRead, ThreadStore, ThreadTail, ThreadTailRequest } from "./ThreadStore.mjs";
@@ -1,2 +1,2 @@
1
- import { Gr as digestDefinition, Kr as digestDefinitions, Ur as EMPTY_TAIL_DIGEST, Vr as DigestError, Wr as digestCanonicalBatch, qr as digestJson } from "../Records-vFp_ZQ9Y.mjs";
1
+ import { Gr as digestDefinition, Kr as digestDefinitions, Ur as EMPTY_TAIL_DIGEST, Vr as DigestError, Wr as digestCanonicalBatch, qr as digestJson } from "../Records-B84j3Jq_.mjs";
2
2
  export { DigestError, EMPTY_TAIL_DIGEST, digestCanonicalBatch, digestDefinition, digestDefinitions, digestJson };
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
2
- import { h as Digest, o as CanonicalBatch, p as DefinitionDigests } from "../Records-C9cezOEf.mjs";
2
+ import { h as Digest, o as CanonicalBatch, p as DefinitionDigests } from "../Records-CsEsSW2o.mjs";
3
3
  import { Array, Crypto, Effect, Encoding, Schema } from "effect";
4
4
  //#region src/durable/Digest.ts
5
5
  var Digest_exports = /* @__PURE__ */ __exportAll({
@@ -1,3 +1,3 @@
1
1
  import { a as Receipt } from "../Receipt-BAHyigAF.mjs";
2
- import { At as DurableWorkerFailure, Ct as DurableRetryFailure, Dt as DurableSubmitFailure, Et as DurableSubmitAgent, Ft as recoveryRepairRecordId, It as threadCreatedBatchId, Lt as threadCreatedRecordId, Mt as RecoveryReport, Nt as childReservationIdFor, Ot as DurableSubmitOptions, Pt as recoveryRepairBatchId, St as DurableResolveFailure, Tt as DurableRuntimeConfigOptions, _t as DurableAwaitFailure, bt as DurableObserveOptions, ft as DurableAbortFailure, gt as DurableApprovalResolver, ht as DurableApprovalFailure, jt as DurableWorkerRequirements, kt as DurableVerifyFailure, pt as DurableAgentRuntime, vt as DurableExplainFailure, wt as DurableRuntimeConfig, xt as DurableProgressFailure, yt as DurableObligationFailure } from "../Records-vFp_ZQ9Y.mjs";
2
+ import { At as DurableWorkerFailure, Ct as DurableRetryFailure, Dt as DurableSubmitFailure, Et as DurableSubmitAgent, Ft as recoveryRepairRecordId, It as threadCreatedBatchId, Lt as threadCreatedRecordId, Mt as RecoveryReport, Nt as childReservationIdFor, Ot as DurableSubmitOptions, Pt as recoveryRepairBatchId, St as DurableResolveFailure, Tt as DurableRuntimeConfigOptions, _t as DurableAwaitFailure, bt as DurableObserveOptions, ft as DurableAbortFailure, gt as DurableApprovalResolver, ht as DurableApprovalFailure, jt as DurableWorkerRequirements, kt as DurableVerifyFailure, pt as DurableAgentRuntime, vt as DurableExplainFailure, wt as DurableRuntimeConfig, xt as DurableProgressFailure, yt as DurableObligationFailure } from "../Records-B84j3Jq_.mjs";
3
3
  export { DurableAbortFailure, DurableAgentRuntime, DurableApprovalFailure, DurableApprovalResolver, DurableAwaitFailure, DurableExplainFailure, DurableObligationFailure, DurableObserveOptions, DurableProgressFailure, DurableResolveFailure, DurableRetryFailure, DurableRuntimeConfig, DurableRuntimeConfigOptions, DurableSubmitAgent, DurableSubmitFailure, DurableSubmitOptions, DurableVerifyFailure, DurableWorkerFailure, DurableWorkerRequirements, Receipt, RecoveryReport, childReservationIdFor, recoveryRepairBatchId, recoveryRepairRecordId, threadCreatedBatchId, threadCreatedRecordId };
@@ -1,3 +1,3 @@
1
1
  import { Receipt } from "../core/Receipt.mjs";
2
- import { a as RecoveryReport, c as recoveryRepairRecordId, i as DurableRuntimeConfig, l as threadCreatedBatchId, o as childReservationIdFor, r as DurableApprovalResolver, s as recoveryRepairBatchId, t as DurableAgentRuntime, u as threadCreatedRecordId } from "../DurableAgentRuntime-CdrBuKZY.mjs";
2
+ import { a as RecoveryReport, c as recoveryRepairRecordId, i as DurableRuntimeConfig, l as threadCreatedBatchId, o as childReservationIdFor, r as DurableApprovalResolver, s as recoveryRepairBatchId, t as DurableAgentRuntime, u as threadCreatedRecordId } from "../DurableAgentRuntime-BaGsWDHO.mjs";
3
3
  export { DurableAgentRuntime, DurableApprovalResolver, DurableRuntimeConfig, Receipt, RecoveryReport, childReservationIdFor, recoveryRepairBatchId, recoveryRepairRecordId, threadCreatedBatchId, threadCreatedRecordId };
@@ -1,2 +1,2 @@
1
- import { a as makeEventSource, i as NormalizedEvent, r as EventSources, t as EventSource } from "../EventSource-c6GRTCsl.mjs";
1
+ import { a as makeEventSource, i as NormalizedEvent, r as EventSources, t as EventSource } from "../EventSource-DVfX1GRH.mjs";
2
2
  export { EventSource, EventSources, NormalizedEvent, makeEventSource };
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
2
- import { T as PersistedJson } from "../Records-C9cezOEf.mjs";
2
+ import { T as PersistedJson } from "../Records-CsEsSW2o.mjs";
3
3
  import { SubscriptionSourceError } from "./Subscription.mjs";
4
4
  import { Context, Effect, Schema } from "effect";
5
5
  //#region src/durable/EventSource.ts
@@ -1,7 +1,7 @@
1
1
  import { r as Principal } from "../Receipt-BAHyigAF.mjs";
2
- import "../Records-vFp_ZQ9Y.mjs";
3
- import { E as SubscriptionSourceError } from "../Subscription-CKQ0KDHN.mjs";
4
- import { t as EventSource } from "../EventSource-c6GRTCsl.mjs";
2
+ import "../Records-B84j3Jq_.mjs";
3
+ import { E as SubscriptionSourceError } from "../Subscription-C8IHdmFk.mjs";
4
+ import { t as EventSource } from "../EventSource-DVfX1GRH.mjs";
5
5
  import { SubscriptionFailure, SubscriptionIntake } from "./Subscriptions.mjs";
6
6
  import { Context, Effect, Layer, Redacted, Schema } from "effect";
7
7
  import { HttpClient } from "effect/unstable/http";
@@ -1,4 +1,4 @@
1
- import { lt as strictSchema } from "../Records-C9cezOEf.mjs";
1
+ import { lt as strictSchema } from "../Records-CsEsSW2o.mjs";
2
2
  import { SubscriptionSourceError } from "./Subscription.mjs";
3
3
  import { makeEventSource } from "./EventSource.mjs";
4
4
  import { SubscriptionIntake } from "./Subscriptions.mjs";
@@ -2,10 +2,10 @@ import { u as ThreadId } from "../Identifiers-CN2s30fF.mjs";
2
2
  import { d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure } from "../SubagentContract-DdT7Cqe6.mjs";
3
3
  import { a as Receipt, t as IdempotencyKey } from "../Receipt-BAHyigAF.mjs";
4
4
  import { r as Update } from "../AgentUpdates-DMJ-_xow.mjs";
5
- import { t as AgentPolicy } from "../AgentPolicy-CetmQrf3.mjs";
6
- import { Fa as Settlement, h as DefinitionDigests } from "../Records-vFp_ZQ9Y.mjs";
7
- import { a as PreparedInput } from "../Subscription-CKQ0KDHN.mjs";
8
- import { t as PreparedInputAdmission } from "../PreparedInputAdmission-QzFbW2LQ.mjs";
5
+ import { t as AgentPolicy } from "../AgentPolicy-BqDoSXO6.mjs";
6
+ import { Fa as Settlement, h as DefinitionDigests } from "../Records-B84j3Jq_.mjs";
7
+ import { a as PreparedInput } from "../Subscription-C8IHdmFk.mjs";
8
+ import { t as PreparedInputAdmission } from "../PreparedInputAdmission-DoWaMC2R.mjs";
9
9
  import { Context, Crypto, Effect, Layer, Result, Schema } from "effect";
10
10
  declare namespace MessageDelivery_d_exports {
11
11
  export { MessageDeliveryChange, MessageDeliveryDriver, MessageDeliveryDriverLimits, MessageDeliveryError, MessageDeliveryFailpoint, MessageDeliveryFailpointError, MessageDeliveryFailure, MessageDeliveryKey, MessageDeliveryPage, MessageDeliveryPageRequest, MessageDeliveryPolicy, MessageDeliveryRecord, MessageDeliveryStore, MessageDeliveryStoreLimits, applyMessageDeliveryChange, defaultMessageDeliveryPolicy, defaultMessageDeliveryStoreLimits, isWorkerUpdateDelivery, messageDeliveryCapacity, messageDeliveryDeadline, messageDeliveryKeyString, messageDeliveryUsesCapacity, prepareMessageDelivery, sameMessageDeliveryIdentity, validateMessageDelivery };
@@ -376,25 +376,6 @@ declare const prepareMessageDelivery: (options: {
376
376
  readonly reportKind?: "update" | undefined;
377
377
  } | undefined;
378
378
  readonly messageAdmission?: {
379
- readonly schemaVersion: 1;
380
- readonly message: {
381
- readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
382
- readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
383
- };
384
- readonly peerName: string;
385
- readonly sender: {
386
- readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
387
- readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
388
- };
389
- readonly returnAddress: {
390
- readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
391
- readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
392
- };
393
- readonly inReplyTo?: {
394
- readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
395
- readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
396
- } | undefined;
397
- } | {
398
379
  readonly _tag: "WorkerCompletion";
399
380
  readonly budgetExhausted: boolean;
400
381
  readonly schemaVersion: 1;
@@ -435,6 +416,25 @@ declare const prepareMessageDelivery: (options: {
435
416
  readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
436
417
  };
437
418
  readonly update: Update;
419
+ } | {
420
+ readonly schemaVersion: 1;
421
+ readonly message: {
422
+ readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
423
+ readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
424
+ };
425
+ readonly peerName: string;
426
+ readonly sender: {
427
+ readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
428
+ readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
429
+ };
430
+ readonly returnAddress: {
431
+ readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
432
+ readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
433
+ };
434
+ readonly inReplyTo?: {
435
+ readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
436
+ readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
437
+ } | undefined;
438
438
  } | undefined;
439
439
  };
440
440
  readonly envelopeDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
@@ -2,7 +2,7 @@ import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { ThreadId } from "../core/Identifiers.mjs";
3
3
  import { IdempotencyKey, Receipt } from "../core/Receipt.mjs";
4
4
  import { WorkerUpdate } from "../core/Worker.mjs";
5
- import { h as Digest } from "../Records-C9cezOEf.mjs";
5
+ import { h as Digest } from "../Records-CsEsSW2o.mjs";
6
6
  import { Settlement } from "./SubmissionLedger.mjs";
7
7
  import { digestJson } from "./Digest.mjs";
8
8
  import { ScheduleInstant, ScheduleRetry, ScheduleRetryReason } from "./Schedule.mjs";
@@ -1,8 +1,8 @@
1
1
  import { d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure } from "../SubagentContract-DdT7Cqe6.mjs";
2
2
  import { a as Receipt } from "../Receipt-BAHyigAF.mjs";
3
3
  import { r as Update } from "../AgentUpdates-DMJ-_xow.mjs";
4
- import { t as AgentPolicy } from "../AgentPolicy-CetmQrf3.mjs";
5
- import { Fa as Settlement, Vr as DigestError, h as DefinitionDigests } from "../Records-vFp_ZQ9Y.mjs";
4
+ import { t as AgentPolicy } from "../AgentPolicy-BqDoSXO6.mjs";
5
+ import { Fa as Settlement, Vr as DigestError, h as DefinitionDigests } from "../Records-B84j3Jq_.mjs";
6
6
  import { MessageDeliveryError, MessageDeliveryFailure, MessageDeliveryStore } from "./MessageDelivery.mjs";
7
7
  import { Effect, Schema } from "effect";
8
8
  //#region src/durable/MessageDeliveryStoreConformance.d.ts
@@ -83,6 +83,25 @@ declare const makeMessageDeliveryFixture: (messageId?: any, owner?: any, text?:
83
83
  readonly reportKind?: "update" | undefined;
84
84
  } | undefined;
85
85
  readonly messageAdmission?: {
86
+ readonly schemaVersion: 1;
87
+ readonly message: {
88
+ readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
89
+ readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
90
+ };
91
+ readonly peerName: string;
92
+ readonly sender: {
93
+ readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
94
+ readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
95
+ };
96
+ readonly returnAddress: {
97
+ readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
98
+ readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
99
+ };
100
+ readonly inReplyTo?: {
101
+ readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
102
+ readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
103
+ } | undefined;
104
+ } | {
86
105
  readonly _tag: "WorkerCompletion";
87
106
  readonly budgetExhausted: boolean;
88
107
  readonly schemaVersion: 1;
@@ -123,25 +142,6 @@ declare const makeMessageDeliveryFixture: (messageId?: any, owner?: any, text?:
123
142
  readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
124
143
  };
125
144
  readonly update: Update;
126
- } | {
127
- readonly schemaVersion: 1;
128
- readonly message: {
129
- readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
130
- readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
131
- };
132
- readonly peerName: string;
133
- readonly sender: {
134
- readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
135
- readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
136
- };
137
- readonly returnAddress: {
138
- readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
139
- readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
140
- };
141
- readonly inReplyTo?: {
142
- readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
143
- readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
144
- } | undefined;
145
145
  } | undefined;
146
146
  };
147
147
  readonly envelopeDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
@@ -246,6 +246,25 @@ declare const makeWorkerUpdateDeliveryFixture: (id: string) => Effect.Effect<{
246
246
  readonly reportKind?: "update" | undefined;
247
247
  } | undefined;
248
248
  readonly messageAdmission?: {
249
+ readonly schemaVersion: 1;
250
+ readonly message: {
251
+ readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
252
+ readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
253
+ };
254
+ readonly peerName: string;
255
+ readonly sender: {
256
+ readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
257
+ readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
258
+ };
259
+ readonly returnAddress: {
260
+ readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
261
+ readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
262
+ };
263
+ readonly inReplyTo?: {
264
+ readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
265
+ readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
266
+ } | undefined;
267
+ } | {
249
268
  readonly _tag: "WorkerCompletion";
250
269
  readonly budgetExhausted: boolean;
251
270
  readonly schemaVersion: 1;
@@ -286,25 +305,6 @@ declare const makeWorkerUpdateDeliveryFixture: (id: string) => Effect.Effect<{
286
305
  readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
287
306
  };
288
307
  readonly update: Update;
289
- } | {
290
- readonly schemaVersion: 1;
291
- readonly message: {
292
- readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
293
- readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
294
- };
295
- readonly peerName: string;
296
- readonly sender: {
297
- readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
298
- readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
299
- };
300
- readonly returnAddress: {
301
- readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
302
- readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
303
- };
304
- readonly inReplyTo?: {
305
- readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
306
- readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
307
- } | undefined;
308
308
  } | undefined;
309
309
  };
310
310
  readonly envelopeDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
@@ -2,7 +2,7 @@ import { AgentId, DelegationId, ReceiptId, RunId, SettlementId, SubmissionId, Th
2
2
  import { IdempotencyKey, Principal, QueueSequence, Receipt } from "../core/Receipt.mjs";
3
3
  import { Update } from "../core/AgentUpdates.mjs";
4
4
  import { WorkerUpdate } from "../core/Worker.mjs";
5
- import { h as Digest, p as DefinitionDigests } from "../Records-C9cezOEf.mjs";
5
+ import { h as Digest, p as DefinitionDigests } from "../Records-CsEsSW2o.mjs";
6
6
  import { Settlement } from "./SubmissionLedger.mjs";
7
7
  import { digestJson } from "./Digest.mjs";
8
8
  import { MessageDeliveryStore, messageDeliveryCapacity, prepareMessageDelivery } from "./MessageDelivery.mjs";
@@ -1,5 +1,5 @@
1
1
  import { t as ThreadHistory } from "../ThreadHistory-tS1KwxHR.mjs";
2
- import { nn as ThreadStore } from "../Records-vFp_ZQ9Y.mjs";
2
+ import { nn as ThreadStore } from "../Records-B84j3Jq_.mjs";
3
3
  import { Layer } from "effect";
4
4
  declare namespace PersistentHistory_d_exports {
5
5
  export { layer };
@@ -1,8 +1,8 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { ThreadHistory, ThreadHistoryError } from "../engine/ThreadHistory.mjs";
3
- import { D as ProducerId, E as ProducerEpoch, M as RunCompleted, O as RecordEnvelope, T as PersistedJson, b as ModelCompleted, et as UserInputRecorded, i as BatchId, k as RecordId, m as DeploymentId, o as CanonicalBatch } from "../Records-C9cezOEf.mjs";
3
+ import { D as ProducerId, E as ProducerEpoch, M as RunCompleted, O as RecordEnvelope, T as PersistedJson, b as ModelCompleted, et as UserInputRecorded, i as BatchId, k as RecordId, m as DeploymentId, o as CanonicalBatch } from "../Records-CsEsSW2o.mjs";
4
4
  import { FencedAppendRequest, MAX_THREAD_EXPORT_RECORDS, ThreadExportRequest, ThreadMaterialization, ThreadStore } from "./ThreadStore.mjs";
5
- import { m as promptFromCanonicalRecords } from "../RunJournal-lwbrh2hZ.mjs";
5
+ import { m as promptFromCanonicalRecords } from "../RunJournal-yYpUlTOE.mjs";
6
6
  import { Prompt } from "effect/unstable/ai";
7
7
  import { DateTime, Effect, Layer, Schema } from "effect";
8
8
  //#region src/durable/PersistentHistory.ts
@@ -1,2 +1,2 @@
1
- import { r as admitPreparedInput, t as PreparedInputAdmission } from "../PreparedInputAdmission-QzFbW2LQ.mjs";
1
+ import { r as admitPreparedInput, t as PreparedInputAdmission } from "../PreparedInputAdmission-DoWaMC2R.mjs";
2
2
  export { PreparedInputAdmission, admitPreparedInput };
@@ -1,2 +1,2 @@
1
- import { $ as ToolCallResolved, A as ProducerId, B as SettlementOutcome, C as ModelCompleted, D as PeerMessagePrepared, E as ObservationOffset, F as RunCompleted, G as SubmissionSettled, H as SubagentLineageRecorded, I as RunFailed, J as ThreadCreated, K as SubmissionSettledRecord, L as RunPolicyUsageReserved, M as RecordId, O as PersistedJson, P as RepairAnnotated, Q as ToolCallResolution, R as RunStartedRecord, S as MAX_PERSISTED_JSON_NODES, T as ModelResponseRecorded, U as SubagentRequested, V as SubagentJoined, W as SubagentStarted, X as ToolApprovalRequested, Y as ToolApprovalDecided, Z as ToolCallPrepared, _ as Digest, a as BatchId, at as WorkerInputCompleted, b as MAX_PERSISTED_JSON_COLLECTION_LENGTH, c as CanonicalRecord, ct as WorkerOriginRecorded, d as CanonicalSequence, dt as WorkerReportingIntent, et as ToolCallSettled, f as CompactionCreated, g as DeploymentId, h as DefinitionDigests, i as ApprovalDecision, it as WorkerAdmission, j as RecordEnvelope, k as ProducerEpoch, l as CanonicalRecordEnvelope, lt as WorkerReportPrepared, m as DefinitionDigestInput, n as AbortedSubmissionSettled, nt as ToolStepSettled, o as CURRENT_CANONICAL_SCHEMA_VERSION, ot as WorkerInputRequested, p as CompletedSubmissionSettled, q as SubtreeBudgetReserved, r as AgentUpdateEmitted, rt as UserInputRecorded, s as CanonicalBatch, st as WorkerOrigin, t as AbortRequested, tt as ToolCallUnknown, u as CanonicalRecordPayload, ut as WorkerReportRefused, v as FailedSubmissionSettled, w as ModelResponseInterrupted, x as MAX_PERSISTED_JSON_DEPTH, y as MAX_PERSISTED_JSON_BYTES, z as SettlementFailureDiagnostic } from "../Records-vFp_ZQ9Y.mjs";
1
+ import { $ as ToolCallResolved, A as ProducerId, B as SettlementOutcome, C as ModelCompleted, D as PeerMessagePrepared, E as ObservationOffset, F as RunCompleted, G as SubmissionSettled, H as SubagentLineageRecorded, I as RunFailed, J as ThreadCreated, K as SubmissionSettledRecord, L as RunPolicyUsageReserved, M as RecordId, O as PersistedJson, P as RepairAnnotated, Q as ToolCallResolution, R as RunStartedRecord, S as MAX_PERSISTED_JSON_NODES, T as ModelResponseRecorded, U as SubagentRequested, V as SubagentJoined, W as SubagentStarted, X as ToolApprovalRequested, Y as ToolApprovalDecided, Z as ToolCallPrepared, _ as Digest, a as BatchId, at as WorkerInputCompleted, b as MAX_PERSISTED_JSON_COLLECTION_LENGTH, c as CanonicalRecord, ct as WorkerOriginRecorded, d as CanonicalSequence, dt as WorkerReportingIntent, et as ToolCallSettled, f as CompactionCreated, g as DeploymentId, h as DefinitionDigests, i as ApprovalDecision, it as WorkerAdmission, j as RecordEnvelope, k as ProducerEpoch, l as CanonicalRecordEnvelope, lt as WorkerReportPrepared, m as DefinitionDigestInput, n as AbortedSubmissionSettled, nt as ToolStepSettled, o as CURRENT_CANONICAL_SCHEMA_VERSION, ot as WorkerInputRequested, p as CompletedSubmissionSettled, q as SubtreeBudgetReserved, r as AgentUpdateEmitted, rt as UserInputRecorded, s as CanonicalBatch, st as WorkerOrigin, t as AbortRequested, tt as ToolCallUnknown, u as CanonicalRecordPayload, ut as WorkerReportRefused, v as FailedSubmissionSettled, w as ModelResponseInterrupted, x as MAX_PERSISTED_JSON_DEPTH, y as MAX_PERSISTED_JSON_BYTES, z as SettlementFailureDiagnostic } from "../Records-B84j3Jq_.mjs";
2
2
  export { AbortRequested, AbortedSubmissionSettled, AgentUpdateEmitted, ApprovalDecision, BatchId, CURRENT_CANONICAL_SCHEMA_VERSION, CanonicalBatch, CanonicalRecord, CanonicalRecordEnvelope, CanonicalRecordPayload, CanonicalSequence, CompactionCreated, CompletedSubmissionSettled, DefinitionDigestInput, DefinitionDigests, DeploymentId, Digest, FailedSubmissionSettled, MAX_PERSISTED_JSON_BYTES, MAX_PERSISTED_JSON_COLLECTION_LENGTH, MAX_PERSISTED_JSON_DEPTH, MAX_PERSISTED_JSON_NODES, ModelCompleted, ModelResponseInterrupted, ModelResponseRecorded, ObservationOffset, PeerMessagePrepared, PersistedJson, ProducerEpoch, ProducerId, RecordEnvelope, RecordId, RepairAnnotated, RunCompleted, RunFailed, RunPolicyUsageReserved, RunStartedRecord, SettlementFailureDiagnostic, SettlementOutcome, SubagentJoined, SubagentLineageRecorded, SubagentRequested, SubagentStarted, SubmissionSettled, SubmissionSettledRecord, SubtreeBudgetReserved, ThreadCreated, ToolApprovalDecided, ToolApprovalRequested, ToolCallPrepared, ToolCallResolution, ToolCallResolved, ToolCallSettled, ToolCallUnknown, ToolStepSettled, UserInputRecorded, WorkerAdmission, WorkerInputCompleted, WorkerInputRequested, WorkerOrigin, WorkerOriginRecorded, WorkerReportPrepared, WorkerReportRefused, WorkerReportingIntent };
@@ -1,2 +1,2 @@
1
- import { $ as ToolStepSettled, B as SubagentRequested, C as ObservationOffset, D as ProducerId, E as ProducerEpoch, F as RunStartedRecord, G as ThreadCreated, H as SubmissionSettled, I as SettlementFailureDiagnostic, J as ToolCallPrepared, K as ToolApprovalDecided, L as SettlementOutcome, M as RunCompleted, N as RunFailed, O as RecordEnvelope, P as RunPolicyUsageReserved, Q as ToolCallUnknown, R as SubagentJoined, S as ModelResponseRecorded, T as PersistedJson, U as SubmissionSettledRecord, V as SubagentStarted, W as SubtreeBudgetReserved, X as ToolCallResolved, Y as ToolCallResolution, Z as ToolCallSettled, _ as MAX_PERSISTED_JSON_COLLECTION_LENGTH, a as CURRENT_CANONICAL_SCHEMA_VERSION, at as WorkerOriginRecorded, b as ModelCompleted, c as CanonicalRecordEnvelope, ct as WorkerReportingIntent, d as CompactionCreated, et as UserInputRecorded, f as DefinitionDigestInput, g as MAX_PERSISTED_JSON_BYTES, h as Digest, i as BatchId, it as WorkerOrigin, j as RepairAnnotated, k as RecordId, l as CanonicalRecordPayload, m as DeploymentId, n as AgentUpdateEmitted, nt as WorkerInputCompleted, o as CanonicalBatch, ot as WorkerReportPrepared, p as DefinitionDigests, q as ToolApprovalRequested, r as ApprovalDecision, rt as WorkerInputRequested, s as CanonicalRecord, st as WorkerReportRefused, t as AbortRequested, tt as WorkerAdmission, u as CanonicalSequence, v as MAX_PERSISTED_JSON_DEPTH, w as PeerMessagePrepared, x as ModelResponseInterrupted, y as MAX_PERSISTED_JSON_NODES, z as SubagentLineageRecorded } from "../Records-C9cezOEf.mjs";
1
+ import { $ as ToolStepSettled, B as SubagentRequested, C as ObservationOffset, D as ProducerId, E as ProducerEpoch, F as RunStartedRecord, G as ThreadCreated, H as SubmissionSettled, I as SettlementFailureDiagnostic, J as ToolCallPrepared, K as ToolApprovalDecided, L as SettlementOutcome, M as RunCompleted, N as RunFailed, O as RecordEnvelope, P as RunPolicyUsageReserved, Q as ToolCallUnknown, R as SubagentJoined, S as ModelResponseRecorded, T as PersistedJson, U as SubmissionSettledRecord, V as SubagentStarted, W as SubtreeBudgetReserved, X as ToolCallResolved, Y as ToolCallResolution, Z as ToolCallSettled, _ as MAX_PERSISTED_JSON_COLLECTION_LENGTH, a as CURRENT_CANONICAL_SCHEMA_VERSION, at as WorkerOriginRecorded, b as ModelCompleted, c as CanonicalRecordEnvelope, ct as WorkerReportingIntent, d as CompactionCreated, et as UserInputRecorded, f as DefinitionDigestInput, g as MAX_PERSISTED_JSON_BYTES, h as Digest, i as BatchId, it as WorkerOrigin, j as RepairAnnotated, k as RecordId, l as CanonicalRecordPayload, m as DeploymentId, n as AgentUpdateEmitted, nt as WorkerInputCompleted, o as CanonicalBatch, ot as WorkerReportPrepared, p as DefinitionDigests, q as ToolApprovalRequested, r as ApprovalDecision, rt as WorkerInputRequested, s as CanonicalRecord, st as WorkerReportRefused, t as AbortRequested, tt as WorkerAdmission, u as CanonicalSequence, v as MAX_PERSISTED_JSON_DEPTH, w as PeerMessagePrepared, x as ModelResponseInterrupted, y as MAX_PERSISTED_JSON_NODES, z as SubagentLineageRecorded } from "../Records-CsEsSW2o.mjs";
2
2
  export { AbortRequested, AgentUpdateEmitted, ApprovalDecision, BatchId, CURRENT_CANONICAL_SCHEMA_VERSION, CanonicalBatch, CanonicalRecord, CanonicalRecordEnvelope, CanonicalRecordPayload, CanonicalSequence, CompactionCreated, DefinitionDigestInput, DefinitionDigests, DeploymentId, Digest, MAX_PERSISTED_JSON_BYTES, MAX_PERSISTED_JSON_COLLECTION_LENGTH, MAX_PERSISTED_JSON_DEPTH, MAX_PERSISTED_JSON_NODES, ModelCompleted, ModelResponseInterrupted, ModelResponseRecorded, ObservationOffset, PeerMessagePrepared, PersistedJson, ProducerEpoch, ProducerId, RecordEnvelope, RecordId, RepairAnnotated, RunCompleted, RunFailed, RunPolicyUsageReserved, RunStartedRecord, SettlementFailureDiagnostic, SettlementOutcome, SubagentJoined, SubagentLineageRecorded, SubagentRequested, SubagentStarted, SubmissionSettled, SubmissionSettledRecord, SubtreeBudgetReserved, ThreadCreated, ToolApprovalDecided, ToolApprovalRequested, ToolCallPrepared, ToolCallResolution, ToolCallResolved, ToolCallSettled, ToolCallUnknown, ToolStepSettled, UserInputRecorded, WorkerAdmission, WorkerInputCompleted, WorkerInputRequested, WorkerOrigin, WorkerOriginRecorded, WorkerReportPrepared, WorkerReportRefused, WorkerReportingIntent };
@@ -1,2 +1,2 @@
1
- import { $r as AwaitChildAdmissionResolution, Ai as SettleJoinedWithHost, Ci as RepairSubagentStartLink, Di as ResumeWaitingParent, Ei as ResumeSuspended, Jr as AppendReservedSettlement, Oi as RevertJoining, Qr as AwaitApprovalDecision, Si as RepairReadiness, Ti as ResumePendingToolBatch, Xr as ApplyJoinAccounting, Yr as ApplyInput, Zr as ApplyUnknownResolutions, _i as RecoveryEvidence, ai as CompleteMaterialization, bi as RepairInputMarker, ci as EnsureWaitingForChild, di as NoAction, ei as AwaitChildSettlement, fi as OpenDelegationCallEvidence, gi as RecoveryDecision, hi as PropagateChildAbort, ii as CompleteChildAdmission, ji as classifyRecovery, ki as SettleAborted, li as FinalizeLedgerFromHistory, mi as PendingApprovalEvidence, ni as AwaitParentEstablishment, oi as DeclaredPendingBatchEvidence, pi as OpenToolCallEvidence, ri as AwaitUnknownResolution, si as DelegationAdmissionEvidence, ti as AwaitHostSettlement, ui as MarkUnknown, wi as ResumeFromTurnBoundary, xi as RepairJoinMarker, yi as ReleaseOrphanChildReservation } from "../Records-vFp_ZQ9Y.mjs";
1
+ import { $r as AwaitChildAdmissionResolution, Ai as SettleJoinedWithHost, Ci as RepairSubagentStartLink, Di as ResumeWaitingParent, Ei as ResumeSuspended, Jr as AppendReservedSettlement, Oi as RevertJoining, Qr as AwaitApprovalDecision, Si as RepairReadiness, Ti as ResumePendingToolBatch, Xr as ApplyJoinAccounting, Yr as ApplyInput, Zr as ApplyUnknownResolutions, _i as RecoveryEvidence, ai as CompleteMaterialization, bi as RepairInputMarker, ci as EnsureWaitingForChild, di as NoAction, ei as AwaitChildSettlement, fi as OpenDelegationCallEvidence, gi as RecoveryDecision, hi as PropagateChildAbort, ii as CompleteChildAdmission, ji as classifyRecovery, ki as SettleAborted, li as FinalizeLedgerFromHistory, mi as PendingApprovalEvidence, ni as AwaitParentEstablishment, oi as DeclaredPendingBatchEvidence, pi as OpenToolCallEvidence, ri as AwaitUnknownResolution, si as DelegationAdmissionEvidence, ti as AwaitHostSettlement, ui as MarkUnknown, wi as ResumeFromTurnBoundary, xi as RepairJoinMarker, yi as ReleaseOrphanChildReservation } from "../Records-B84j3Jq_.mjs";
2
2
  export { AppendReservedSettlement, ApplyInput, ApplyJoinAccounting, ApplyUnknownResolutions, AwaitApprovalDecision, AwaitChildAdmissionResolution, AwaitChildSettlement, AwaitHostSettlement, AwaitParentEstablishment, AwaitUnknownResolution, CompleteChildAdmission, CompleteMaterialization, DeclaredPendingBatchEvidence, DelegationAdmissionEvidence, EnsureWaitingForChild, FinalizeLedgerFromHistory, MarkUnknown, NoAction, OpenDelegationCallEvidence, OpenToolCallEvidence, PendingApprovalEvidence, PropagateChildAbort, RecoveryDecision, RecoveryEvidence, ReleaseOrphanChildReservation, RepairInputMarker, RepairJoinMarker, RepairReadiness, RepairSubagentStartLink, ResumeFromTurnBoundary, ResumePendingToolBatch, ResumeSuspended, ResumeWaitingParent, RevertJoining, SettleAborted, SettleJoinedWithHost, classifyRecovery };
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { SettlementId, SubmissionId, ThreadId, ToolCallId } from "../core/Identifiers.mjs";
3
- import { J as ToolCallPrepared, L as SettlementOutcome } from "../Records-C9cezOEf.mjs";
3
+ import { J as ToolCallPrepared, L as SettlementOutcome } from "../Records-CsEsSW2o.mjs";
4
4
  import { ChildReservationId, WaitingChild, submissionSettlementId } from "./SubmissionLedger.mjs";
5
5
  import { Effect, Schema } from "effect";
6
6
  //#region src/durable/Recovery.ts
@@ -1,2 +1,2 @@
1
- import { $n as turnBatchId, An as runCompletedRecordId, Bn as subagentStartedBatchId, Cn as markUnknownBatchId, Dn as projectRunJournal, En as modelResponseRecordId, Fn as subagentJoinedRecordId, Gn as toolCallResolutionBatchId, Hn as toolApprovalDecisionRecordId, In as subagentLineageBatchId, Jn as toolCallSettledRecordId, Kn as toolCallResolvedRecordId, Ln as subagentLineageRecordId, Mn as runStartedBatchId, Nn as runStartedRecordId, On as projectRunJournalStream, Pn as subagentJoinBatchId, Qn as turnApprovalsBatchId, Rn as subagentRequestedBatchId, Sn as compactionRecordId, Tn as modelResponseInterruptedRecordId, Un as toolApprovalRequestRecordId, Vn as subagentStartedRecordId, Wn as toolCallPreparedRecordId, Xn as toolStepSettledBatchId, Yn as toolCallUnknownRecordId, Zn as toolStepSettledRecordId, _n as TurnCommitInput, ar as turnResultsBatch, bn as childThreadIdFor, er as turnCanonicalBatch, fn as JournalBoundary, hn as RunJournalUsage, ir as turnResponseBatchId, jn as runIdForSubmission, kn as promptFromCanonicalRecords, mn as RunJournalProjection, nr as turnPreparedBatchId, or as turnResultsBatchId, pn as RunJournalError, qn as toolCallResultBatchId, rr as turnResponseBatch, tr as turnIdForRun, vn as approvalDecisionBatchId, wn as modelResponseInterruptedBatchId, xn as compactionBatchId, yn as childIdempotencyKeyFor, zn as subagentRequestedRecordId } from "../Records-vFp_ZQ9Y.mjs";
1
+ import { $n as turnBatchId, An as runCompletedRecordId, Bn as subagentStartedBatchId, Cn as markUnknownBatchId, Dn as projectRunJournal, En as modelResponseRecordId, Fn as subagentJoinedRecordId, Gn as toolCallResolutionBatchId, Hn as toolApprovalDecisionRecordId, In as subagentLineageBatchId, Jn as toolCallSettledRecordId, Kn as toolCallResolvedRecordId, Ln as subagentLineageRecordId, Mn as runStartedBatchId, Nn as runStartedRecordId, On as projectRunJournalStream, Pn as subagentJoinBatchId, Qn as turnApprovalsBatchId, Rn as subagentRequestedBatchId, Sn as compactionRecordId, Tn as modelResponseInterruptedRecordId, Un as toolApprovalRequestRecordId, Vn as subagentStartedRecordId, Wn as toolCallPreparedRecordId, Xn as toolStepSettledBatchId, Yn as toolCallUnknownRecordId, Zn as toolStepSettledRecordId, _n as TurnCommitInput, ar as turnResultsBatch, bn as childThreadIdFor, er as turnCanonicalBatch, fn as JournalBoundary, hn as RunJournalUsage, ir as turnResponseBatchId, jn as runIdForSubmission, kn as promptFromCanonicalRecords, mn as RunJournalProjection, nr as turnPreparedBatchId, or as turnResultsBatchId, pn as RunJournalError, qn as toolCallResultBatchId, rr as turnResponseBatch, tr as turnIdForRun, vn as approvalDecisionBatchId, wn as modelResponseInterruptedBatchId, xn as compactionBatchId, yn as childIdempotencyKeyFor, zn as subagentRequestedRecordId } from "../Records-B84j3Jq_.mjs";
2
2
  export { JournalBoundary, RunJournalError, RunJournalProjection, RunJournalUsage, TurnCommitInput, approvalDecisionBatchId, childIdempotencyKeyFor, childThreadIdFor, compactionBatchId, compactionRecordId, markUnknownBatchId, modelResponseInterruptedBatchId, modelResponseInterruptedRecordId, modelResponseRecordId, projectRunJournal, projectRunJournalStream, promptFromCanonicalRecords, runCompletedRecordId, runIdForSubmission, runStartedBatchId, runStartedRecordId, subagentJoinBatchId, subagentJoinedRecordId, subagentLineageBatchId, subagentLineageRecordId, subagentRequestedBatchId, subagentRequestedRecordId, subagentStartedBatchId, subagentStartedRecordId, toolApprovalDecisionRecordId, toolApprovalRequestRecordId, toolCallPreparedRecordId, toolCallResolutionBatchId, toolCallResolvedRecordId, toolCallResultBatchId, toolCallSettledRecordId, toolCallUnknownRecordId, toolStepSettledBatchId, toolStepSettledRecordId, turnApprovalsBatchId, turnBatchId, turnCanonicalBatch, turnIdForRun, turnPreparedBatchId, turnResponseBatch, turnResponseBatchId, turnResultsBatch, turnResultsBatchId };
@@ -1,2 +1,2 @@
1
- import { A as toolCallResolutionBatchId, B as turnIdForRun, C as subagentRequestedBatchId, D as toolApprovalDecisionRecordId, E as subagentStartedRecordId, F as toolStepSettledBatchId, G as turnResultsBatchId, H as turnResponseBatch, I as toolStepSettledRecordId, L as turnApprovalsBatchId, M as toolCallResultBatchId, N as toolCallSettledRecordId, O as toolApprovalRequestRecordId, P as toolCallUnknownRecordId, R as turnBatchId, S as subagentLineageRecordId, T as subagentStartedBatchId, U as turnResponseBatchId, V as turnPreparedBatchId, W as turnResultsBatch, _ as runStartedBatchId, a as childThreadIdFor, b as subagentJoinedRecordId, c as markUnknownBatchId, d as modelResponseRecordId, f as projectRunJournal, g as runIdForSubmission, h as runCompletedRecordId, i as childIdempotencyKeyFor, j as toolCallResolvedRecordId, k as toolCallPreparedRecordId, l as modelResponseInterruptedBatchId, m as promptFromCanonicalRecords, o as compactionBatchId, p as projectRunJournalStream, r as approvalDecisionBatchId, s as compactionRecordId, t as RunJournalError, u as modelResponseInterruptedRecordId, v as runStartedRecordId, w as subagentRequestedRecordId, x as subagentLineageBatchId, y as subagentJoinBatchId, z as turnCanonicalBatch } from "../RunJournal-lwbrh2hZ.mjs";
1
+ import { A as toolCallResolutionBatchId, B as turnIdForRun, C as subagentRequestedBatchId, D as toolApprovalDecisionRecordId, E as subagentStartedRecordId, F as toolStepSettledBatchId, G as turnResultsBatchId, H as turnResponseBatch, I as toolStepSettledRecordId, L as turnApprovalsBatchId, M as toolCallResultBatchId, N as toolCallSettledRecordId, O as toolApprovalRequestRecordId, P as toolCallUnknownRecordId, R as turnBatchId, S as subagentLineageRecordId, T as subagentStartedBatchId, U as turnResponseBatchId, V as turnPreparedBatchId, W as turnResultsBatch, _ as runStartedBatchId, a as childThreadIdFor, b as subagentJoinedRecordId, c as markUnknownBatchId, d as modelResponseRecordId, f as projectRunJournal, g as runIdForSubmission, h as runCompletedRecordId, i as childIdempotencyKeyFor, j as toolCallResolvedRecordId, k as toolCallPreparedRecordId, l as modelResponseInterruptedBatchId, m as promptFromCanonicalRecords, o as compactionBatchId, p as projectRunJournalStream, r as approvalDecisionBatchId, s as compactionRecordId, t as RunJournalError, u as modelResponseInterruptedRecordId, v as runStartedRecordId, w as subagentRequestedRecordId, x as subagentLineageBatchId, y as subagentJoinBatchId, z as turnCanonicalBatch } from "../RunJournal-yYpUlTOE.mjs";
2
2
  export { RunJournalError, approvalDecisionBatchId, childIdempotencyKeyFor, childThreadIdFor, compactionBatchId, compactionRecordId, markUnknownBatchId, modelResponseInterruptedBatchId, modelResponseInterruptedRecordId, modelResponseRecordId, projectRunJournal, projectRunJournalStream, promptFromCanonicalRecords, runCompletedRecordId, runIdForSubmission, runStartedBatchId, runStartedRecordId, subagentJoinBatchId, subagentJoinedRecordId, subagentLineageBatchId, subagentLineageRecordId, subagentRequestedBatchId, subagentRequestedRecordId, subagentStartedBatchId, subagentStartedRecordId, toolApprovalDecisionRecordId, toolApprovalRequestRecordId, toolCallPreparedRecordId, toolCallResolutionBatchId, toolCallResolvedRecordId, toolCallResultBatchId, toolCallSettledRecordId, toolCallUnknownRecordId, toolStepSettledBatchId, toolStepSettledRecordId, turnApprovalsBatchId, turnBatchId, turnCanonicalBatch, turnIdForRun, turnPreparedBatchId, turnResponseBatch, turnResponseBatchId, turnResultsBatch, turnResultsBatchId };
@@ -1,2 +1,2 @@
1
- import { A as ScheduleSnapshotPage, B as ScheduledInputAdmission, C as ScheduleRecord, D as ScheduleScope, E as ScheduleRetryReason, F as ScheduleTimingRequest, G as defaultSchedulingLimits, H as ScheduledInputRefused, I as ScheduleValidationError, L as ScheduleWake, M as ScheduleStore, N as ScheduleStoreFailure, O as ScheduleSkippedRange, P as ScheduleTiming, S as SchedulePending, T as ScheduleRetry, U as ScheduledInputRetryable, V as ScheduledInputFailure, W as SchedulingLimits, _ as ScheduleNotFound, a as ScheduleChange, b as SchedulePage, c as ScheduleDestination, d as ScheduleFailpointError, f as ScheduleId, g as ScheduleManagementOperation, h as ScheduleManagementAuthorization, i as ScheduleCapacityError, j as ScheduleStorageError, k as ScheduleSnapshot, l as ScheduleDueCursor, m as ScheduleKey, n as ScheduleAuthorizationError, o as ScheduleConfiguration, p as ScheduleInstant, r as ScheduleAuthorizer, s as ScheduleConflict, t as ScheduleAuthorizationDecision, u as ScheduleFailpoint, v as ScheduleOccurrenceAuthorization, w as ScheduleRefusal, x as SchedulePageRequest, y as ScheduleOwner, z as ScheduledEnvelope } from "../Schedule-BkZvKyMw.mjs";
1
+ import { A as ScheduleSnapshotPage, B as ScheduledInputAdmission, C as ScheduleRecord, D as ScheduleScope, E as ScheduleRetryReason, F as ScheduleTimingRequest, G as defaultSchedulingLimits, H as ScheduledInputRefused, I as ScheduleValidationError, L as ScheduleWake, M as ScheduleStore, N as ScheduleStoreFailure, O as ScheduleSkippedRange, P as ScheduleTiming, S as SchedulePending, T as ScheduleRetry, U as ScheduledInputRetryable, V as ScheduledInputFailure, W as SchedulingLimits, _ as ScheduleNotFound, a as ScheduleChange, b as SchedulePage, c as ScheduleDestination, d as ScheduleFailpointError, f as ScheduleId, g as ScheduleManagementOperation, h as ScheduleManagementAuthorization, i as ScheduleCapacityError, j as ScheduleStorageError, k as ScheduleSnapshot, l as ScheduleDueCursor, m as ScheduleKey, n as ScheduleAuthorizationError, o as ScheduleConfiguration, p as ScheduleInstant, r as ScheduleAuthorizer, s as ScheduleConflict, t as ScheduleAuthorizationDecision, u as ScheduleFailpoint, v as ScheduleOccurrenceAuthorization, w as ScheduleRefusal, x as SchedulePageRequest, y as ScheduleOwner, z as ScheduledEnvelope } from "../Schedule-DCYBfhgT.mjs";
2
2
  export { ScheduleAuthorizationDecision, ScheduleAuthorizationError, ScheduleAuthorizer, ScheduleCapacityError, ScheduleChange, ScheduleConfiguration, ScheduleConflict, ScheduleDestination, ScheduleDueCursor, ScheduleFailpoint, ScheduleFailpointError, ScheduleId, ScheduleInstant, ScheduleKey, ScheduleManagementAuthorization, ScheduleManagementOperation, ScheduleNotFound, ScheduleOccurrenceAuthorization, ScheduleOwner, SchedulePage, SchedulePageRequest, SchedulePending, ScheduleRecord, ScheduleRefusal, ScheduleRetry, ScheduleRetryReason, ScheduleScope, ScheduleSkippedRange, ScheduleSnapshot, ScheduleSnapshotPage, ScheduleStorageError, ScheduleStore, ScheduleStoreFailure, ScheduleTiming, ScheduleTimingRequest, ScheduleValidationError, ScheduleWake, ScheduledEnvelope, ScheduledInputAdmission, ScheduledInputFailure, ScheduledInputRefused, ScheduledInputRetryable, SchedulingLimits, defaultSchedulingLimits };
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { AgentId, ThreadId } from "../core/Identifiers.mjs";
3
3
  import { IdempotencyKey, Principal, Receipt } from "../core/Receipt.mjs";
4
- import { T as PersistedJson, h as Digest, p as DefinitionDigests } from "../Records-C9cezOEf.mjs";
4
+ import { T as PersistedJson, h as Digest, p as DefinitionDigests } from "../Records-CsEsSW2o.mjs";
5
5
  import { AdmissionFence, AdmissionGroup } from "./SubmissionLedger.mjs";
6
6
  import { Context, Effect, Schema } from "effect";
7
7
  //#region src/durable/Schedule.ts
@@ -1,4 +1,4 @@
1
- import { M as ScheduleStore, N as ScheduleStoreFailure } from "../Schedule-BkZvKyMw.mjs";
1
+ import { M as ScheduleStore, N as ScheduleStoreFailure } from "../Schedule-DCYBfhgT.mjs";
2
2
  import { Effect, Schema } from "effect";
3
3
  //#region src/durable/ScheduleStoreConformance.d.ts
4
4
  declare const ScheduleStoreConformanceViolation_base: Schema.Class<ScheduleStoreConformanceViolation, Schema.TaggedStruct<"ScheduleStoreConformanceViolation", {
@@ -1,6 +1,6 @@
1
1
  import { AgentId, ReceiptId, SubmissionId, ThreadId } from "../core/Identifiers.mjs";
2
2
  import { IdempotencyKey, Principal, QueueSequence, Receipt } from "../core/Receipt.mjs";
3
- import { h as Digest, p as DefinitionDigests } from "../Records-C9cezOEf.mjs";
3
+ import { h as Digest, p as DefinitionDigests } from "../Records-CsEsSW2o.mjs";
4
4
  import { ScheduleCapacityError, ScheduleId, ScheduleStore } from "./Schedule.mjs";
5
5
  import { Effect, Result, Schema } from "effect";
6
6
  //#region src/durable/ScheduleStoreConformance.ts
@@ -1,4 +1,4 @@
1
- import { C as ScheduleRecord, a as ScheduleChange, m as ScheduleKey, s as ScheduleConflict, y as ScheduleOwner } from "../Schedule-BkZvKyMw.mjs";
1
+ import { C as ScheduleRecord, a as ScheduleChange, m as ScheduleKey, s as ScheduleConflict, y as ScheduleOwner } from "../Schedule-DCYBfhgT.mjs";
2
2
  import { Result } from "effect";
3
3
  declare namespace ScheduleTransition_d_exports {
4
4
  export { applyScheduleChange, compareScheduleKeys, compareScheduleNames, scheduleDeadline, scheduleKeyOf, scheduleKeyString, scheduleOwnerKey, scheduleUsesCapacity };
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
2
- import { T as PersistedJson, p as DefinitionDigests } from "../Records-C9cezOEf.mjs";
2
+ import { T as PersistedJson, p as DefinitionDigests } from "../Records-CsEsSW2o.mjs";
3
3
  import { AdmissionFence } from "./SubmissionLedger.mjs";
4
4
  import { ScheduleConflict } from "./Schedule.mjs";
5
5
  import { Result, Schema } from "effect";
@@ -1,6 +1,6 @@
1
1
  import { r as Principal } from "../Receipt-BAHyigAF.mjs";
2
- import { Et as DurableSubmitAgent, Li as AdmissionFence, h as DefinitionDigests } from "../Records-vFp_ZQ9Y.mjs";
3
- import { A as ScheduleSnapshotPage, B as ScheduledInputAdmission, C as ScheduleRecord, D as ScheduleScope, F as ScheduleTimingRequest, I as ScheduleValidationError, L as ScheduleWake, M as ScheduleStore, N as ScheduleStoreFailure, W as SchedulingLimits, c as ScheduleDestination, f as ScheduleId, j as ScheduleStorageError, k as ScheduleSnapshot, m as ScheduleKey, n as ScheduleAuthorizationError, r as ScheduleAuthorizer, y as ScheduleOwner } from "../Schedule-BkZvKyMw.mjs";
2
+ import { Et as DurableSubmitAgent, Li as AdmissionFence, h as DefinitionDigests } from "../Records-B84j3Jq_.mjs";
3
+ import { A as ScheduleSnapshotPage, B as ScheduledInputAdmission, C as ScheduleRecord, D as ScheduleScope, F as ScheduleTimingRequest, I as ScheduleValidationError, L as ScheduleWake, M as ScheduleStore, N as ScheduleStoreFailure, W as SchedulingLimits, c as ScheduleDestination, f as ScheduleId, j as ScheduleStorageError, k as ScheduleSnapshot, m as ScheduleKey, n as ScheduleAuthorizationError, r as ScheduleAuthorizer, y as ScheduleOwner } from "../Schedule-DCYBfhgT.mjs";
4
4
  import { Context, Crypto, Effect, Layer, Schema } from "effect";
5
5
  declare namespace Scheduling_d_exports {
6
6
  export { ScheduleCreateOptions, ScheduleDriver, ScheduleListOptions, ScheduleManagementFailure, ScheduleProcessFailure, ScheduleUpdateOptions, ScheduleWakeNoop, Scheduling };
@@ -1,2 +1,2 @@
1
- import { n as ScheduleWakeNoop, r as Scheduling, t as ScheduleDriver } from "../Scheduling-D0QqOoeT.mjs";
1
+ import { n as ScheduleWakeNoop, r as Scheduling, t as ScheduleDriver } from "../Scheduling-CUuYc3-D.mjs";
2
2
  export { ScheduleDriver, ScheduleWakeNoop, Scheduling };
@@ -1,5 +1,5 @@
1
- import { d as ScheduleFailpointError } from "../Schedule-BkZvKyMw.mjs";
2
- import { g as SubscriptionFailpointError } from "../Subscription-CKQ0KDHN.mjs";
1
+ import { d as ScheduleFailpointError } from "../Schedule-DCYBfhgT.mjs";
2
+ import { g as SubscriptionFailpointError } from "../Subscription-C8IHdmFk.mjs";
3
3
  import { Effect, Schema } from "effect";
4
4
  import * as SqlClient from "effect/unstable/sql/SqlClient";
5
5
  //#region src/durable/SqlStorageV2Upgrade.d.ts
@@ -1,4 +1,4 @@
1
- import { p as DefinitionDigests } from "../Records-C9cezOEf.mjs";
1
+ import { p as DefinitionDigests } from "../Records-CsEsSW2o.mjs";
2
2
  import { digestJson } from "./Digest.mjs";
3
3
  import { ScheduleConfiguration, ScheduleFailpoint, ScheduleInstant, ScheduleRecord, ScheduleRetry, ScheduledEnvelope } from "./Schedule.mjs";
4
4
  import { PreparedInput, SubscriptionConfiguration, SubscriptionDelivery, SubscriptionFailpoint, SubscriptionRecord, subscriptionDeliveryKeyString } from "./Subscription.mjs";
@@ -1,5 +1,5 @@
1
- import { _ as Digest } from "../Records-vFp_ZQ9Y.mjs";
2
- import { C as SubscriptionScanCursors, O as SubscriptionStoreFailure, S as SubscriptionRetentionPolicy, _ as SubscriptionKey, b as SubscriptionRecord, d as SubscriptionDelivery, f as SubscriptionDeliveryKey, g as SubscriptionFailpointError, l as SubscriptionChange, m as SubscriptionError, n as DeliveryChange, o as SourcePartition, t as AcceptedEvent, v as SubscriptionLimits } from "../Subscription-CKQ0KDHN.mjs";
1
+ import { _ as Digest } from "../Records-B84j3Jq_.mjs";
2
+ import { C as SubscriptionScanCursors, O as SubscriptionStoreFailure, S as SubscriptionRetentionPolicy, _ as SubscriptionKey, b as SubscriptionRecord, d as SubscriptionDelivery, f as SubscriptionDeliveryKey, g as SubscriptionFailpointError, l as SubscriptionChange, m as SubscriptionError, n as DeliveryChange, o as SourcePartition, t as AcceptedEvent, v as SubscriptionLimits } from "../Subscription-C8IHdmFk.mjs";
3
3
  import { Context, Effect } from "effect";
4
4
  import * as SqlClientService from "effect/unstable/sql/SqlClient";
5
5
  //#region src/durable/SqlSubscriptionStore.d.ts
@@ -1,4 +1,4 @@
1
- import { h as Digest } from "../Records-C9cezOEf.mjs";
1
+ import { h as Digest } from "../Records-CsEsSW2o.mjs";
2
2
  import { AcceptedEvent, DeliveryChange, SubscriptionChange, SubscriptionDelivery, SubscriptionDeliveryKey, SubscriptionError, SubscriptionFailpoint, SubscriptionKey, SubscriptionLimits, SubscriptionName, SubscriptionRecord, SubscriptionRetentionPolicy, SubscriptionScanCursors, SubscriptionStore, subscriptionDeliveryKeyString } from "./Subscription.mjs";
3
3
  import { applySubscriptionChange, applySubscriptionDeliveryChange, sameAcceptedEventIdentity, sameSourcePartition, subscriptionCanSelect, subscriptionDeliveryCanSelect, validateEventRetention } from "./SubscriptionTransition.mjs";
4
4
  import { Clock, Context, Effect, Result, Schema } from "effect";
@@ -1,3 +1,3 @@
1
1
  import { i as QueueSequence, n as JoinedToHost, r as Principal, t as IdempotencyKey } from "../Receipt-BAHyigAF.mjs";
2
- import { $a as UnknownResolution, $i as ChildBudgetReservationSnapshot, Aa as ResolutionAbortSubmission, Ba as SubmissionAdmissionFence, Bi as AdmissionNotAdmitted, Ca as RecoverySnapshot, Da as RenewOwnershipRequest, Ea as ReleaseOwnershipRequest, Fa as Settlement, Fi as AdmissionAdmitted, Ga as SubmissionLookupById, Gi as ApprovalConflict, Ha as SubmissionLedgerFailure, Hi as AdmissionRequest, Ia as SettlementConflict, Ii as AdmissionConflict, Ja as SubmissionState, Ji as ApprovalPendingSuspension, Ka as SubmissionLookupByKey, Ki as ApprovalDecisionCommand, La as SettlementFinalization, Li as AdmissionFence, Ma as ResolutionNeverHappened, Mi as AbortCommand, Na as ResolutionSafeToRetry, Ni as AbortIntent, Oa as ReservedChildBudget, Pa as RevertJoiningRequest, Pi as AbortIntentRequest, Qa as SuspensionSnapshot, Qi as ChildBudgetReservationRequest, Ra as SettlementReservation, Ri as AdmissionGroup, Sa as ParentLinkage, Ta as ReleaseChildBudgetRequest, Ui as AdmissionResolution, Va as SubmissionLedger, Vi as AdmissionPolicyError, Wa as SubmissionLookup, Wi as AdmissionResult, Xa as SuspensionOutcome, Xi as BeginChildBudgetReleaseRequest, Ya as SuspendRequest, Yi as AttachChildToReservationRequest, Za as SuspensionReason, Zi as ChildAttachmentSnapshot, _a as MarkUnknownRequest, aa as Claim, ao as settlementFailureFromRecord, ba as OwnershipSnapshot, ca as DEFAULT_OWNERSHIP_LEASE_DURATION, co as submissionInputBatchId, da as JoiningClaim, do as submissionSettlementId, ea as ChildReservationConflict, eo as UnknownResolutionCommand, fa as LedgerCapabilities, fo as submissionSettlementRecordId, ga as MarkReadyRequest, ha as MarkJoinedRequest, ia as ChildSettledOutcome, io as WaitingForChildSuspension, ja as ResolutionCompletedWithResult, ka as ReservedSettlement, la as InputAppliedMarker, lo as submissionInputRecordId, ma as MarkInputAppliedRequest, na as ChildReservationStatus, no as UnknownResolutionIntent, oa as ClaimJoiningRequest, oo as submissionAbortBatchId, pa as LedgerError, qa as SubmissionSnapshot, qi as ApprovalDecisionIntent, ra as ChildSettledNotification, ro as WaitingChild, sa as ClaimRequest, so as submissionAbortRecordId, ta as ChildReservationId, to as UnknownResolutionConflict, ua as JoinSnapshot, uo as submissionSettlementBatchId, va as OwnershipLost, wa as RecoverySnapshotRequest, xa as OwnershipToken, ya as OwnershipRenewal, za as SettlementReservationSnapshot, zi as AdmissionIndeterminate } from "../Records-vFp_ZQ9Y.mjs";
2
+ import { $a as UnknownResolution, $i as ChildBudgetReservationSnapshot, Aa as ResolutionAbortSubmission, Ba as SubmissionAdmissionFence, Bi as AdmissionNotAdmitted, Ca as RecoverySnapshot, Da as RenewOwnershipRequest, Ea as ReleaseOwnershipRequest, Fa as Settlement, Fi as AdmissionAdmitted, Ga as SubmissionLookupById, Gi as ApprovalConflict, Ha as SubmissionLedgerFailure, Hi as AdmissionRequest, Ia as SettlementConflict, Ii as AdmissionConflict, Ja as SubmissionState, Ji as ApprovalPendingSuspension, Ka as SubmissionLookupByKey, Ki as ApprovalDecisionCommand, La as SettlementFinalization, Li as AdmissionFence, Ma as ResolutionNeverHappened, Mi as AbortCommand, Na as ResolutionSafeToRetry, Ni as AbortIntent, Oa as ReservedChildBudget, Pa as RevertJoiningRequest, Pi as AbortIntentRequest, Qa as SuspensionSnapshot, Qi as ChildBudgetReservationRequest, Ra as SettlementReservation, Ri as AdmissionGroup, Sa as ParentLinkage, Ta as ReleaseChildBudgetRequest, Ui as AdmissionResolution, Va as SubmissionLedger, Vi as AdmissionPolicyError, Wa as SubmissionLookup, Wi as AdmissionResult, Xa as SuspensionOutcome, Xi as BeginChildBudgetReleaseRequest, Ya as SuspendRequest, Yi as AttachChildToReservationRequest, Za as SuspensionReason, Zi as ChildAttachmentSnapshot, _a as MarkUnknownRequest, aa as Claim, ao as settlementFailureFromRecord, ba as OwnershipSnapshot, ca as DEFAULT_OWNERSHIP_LEASE_DURATION, co as submissionInputBatchId, da as JoiningClaim, do as submissionSettlementId, ea as ChildReservationConflict, eo as UnknownResolutionCommand, fa as LedgerCapabilities, fo as submissionSettlementRecordId, ga as MarkReadyRequest, ha as MarkJoinedRequest, ia as ChildSettledOutcome, io as WaitingForChildSuspension, ja as ResolutionCompletedWithResult, ka as ReservedSettlement, la as InputAppliedMarker, lo as submissionInputRecordId, ma as MarkInputAppliedRequest, na as ChildReservationStatus, no as UnknownResolutionIntent, oa as ClaimJoiningRequest, oo as submissionAbortBatchId, pa as LedgerError, qa as SubmissionSnapshot, qi as ApprovalDecisionIntent, ra as ChildSettledNotification, ro as WaitingChild, sa as ClaimRequest, so as submissionAbortRecordId, ta as ChildReservationId, to as UnknownResolutionConflict, ua as JoinSnapshot, uo as submissionSettlementBatchId, va as OwnershipLost, wa as RecoverySnapshotRequest, xa as OwnershipToken, ya as OwnershipRenewal, za as SettlementReservationSnapshot, zi as AdmissionIndeterminate } from "../Records-B84j3Jq_.mjs";
3
3
  export { AbortCommand, AbortIntent, AbortIntentRequest, AdmissionAdmitted, AdmissionConflict, AdmissionFence, AdmissionGroup, AdmissionIndeterminate, AdmissionNotAdmitted, AdmissionPolicyError, AdmissionRequest, AdmissionResolution, AdmissionResult, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, ApprovalPendingSuspension, AttachChildToReservationRequest, BeginChildBudgetReleaseRequest, ChildAttachmentSnapshot, ChildBudgetReservationRequest, ChildBudgetReservationSnapshot, ChildReservationConflict, ChildReservationId, ChildReservationStatus, ChildSettledNotification, ChildSettledOutcome, Claim, ClaimJoiningRequest, ClaimRequest, DEFAULT_OWNERSHIP_LEASE_DURATION, IdempotencyKey, InputAppliedMarker, JoinSnapshot, JoinedToHost, JoiningClaim, LedgerCapabilities, LedgerError, MarkInputAppliedRequest, MarkJoinedRequest, MarkReadyRequest, MarkUnknownRequest, OwnershipLost, OwnershipRenewal, OwnershipSnapshot, OwnershipToken, ParentLinkage, Principal, QueueSequence, RecoverySnapshot, RecoverySnapshotRequest, ReleaseChildBudgetRequest, ReleaseOwnershipRequest, RenewOwnershipRequest, ReservedChildBudget, ReservedSettlement, ResolutionAbortSubmission, ResolutionCompletedWithResult, ResolutionNeverHappened, ResolutionSafeToRetry, RevertJoiningRequest, Settlement, SettlementConflict, SettlementFinalization, SettlementReservation, SettlementReservationSnapshot, SubmissionAdmissionFence, SubmissionLedger, SubmissionLedgerFailure, SubmissionLookup, SubmissionLookupById, SubmissionLookupByKey, SubmissionSnapshot, SubmissionState, SuspendRequest, SuspensionOutcome, SuspensionReason, SuspensionSnapshot, UnknownResolution, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent, WaitingChild, WaitingForChildSuspension, settlementFailureFromRecord, submissionAbortBatchId, submissionAbortRecordId, submissionInputBatchId, submissionInputRecordId, submissionSettlementBatchId, submissionSettlementId, submissionSettlementRecordId };
@@ -3,7 +3,7 @@ import { AgentId, AttemptId, ReceiptId, SettlementId, SubmissionId, ThreadId, To
3
3
  import { IdempotencyKey, JoinedToHost, Principal, QueueSequence } from "../core/Receipt.mjs";
4
4
  import { RunUsageSummary } from "../core/Usage.mjs";
5
5
  import { l as InputMessage } from "../MessagingHost-CWi_PP3g.mjs";
6
- import { D as ProducerId, E as ProducerEpoch, I as SettlementFailureDiagnostic, K as ToolApprovalDecided, L as SettlementOutcome, O as RecordEnvelope, Q as ToolCallUnknown, T as PersistedJson, X as ToolCallResolved, h as Digest, i as BatchId, k as RecordId, m as DeploymentId, p as DefinitionDigests, r as ApprovalDecision, t as AbortRequested, tt as WorkerAdmission, u as CanonicalSequence } from "../Records-C9cezOEf.mjs";
6
+ import { D as ProducerId, E as ProducerEpoch, I as SettlementFailureDiagnostic, K as ToolApprovalDecided, L as SettlementOutcome, O as RecordEnvelope, Q as ToolCallUnknown, T as PersistedJson, X as ToolCallResolved, h as Digest, i as BatchId, k as RecordId, m as DeploymentId, p as DefinitionDigests, r as ApprovalDecision, t as AbortRequested, tt as WorkerAdmission, u as CanonicalSequence } from "../Records-CsEsSW2o.mjs";
7
7
  import { Context, Duration, Effect, Schema } from "effect";
8
8
  //#region src/durable/SubmissionLedger.ts
9
9
  var SubmissionLedger_exports = /* @__PURE__ */ __exportAll({
@@ -1,4 +1,4 @@
1
- import { Ha as SubmissionLedgerFailure, Va as SubmissionLedger, Vr as DigestError } from "../Records-vFp_ZQ9Y.mjs";
1
+ import { Ha as SubmissionLedgerFailure, Va as SubmissionLedger, Vr as DigestError } from "../Records-B84j3Jq_.mjs";
2
2
  import { Crypto, Effect, Schema } from "effect";
3
3
  //#region src/durable/SubmissionLedgerConformance.d.ts
4
4
  declare const SubmissionLedgerConformanceViolation_base: Schema.Class<SubmissionLedgerConformanceViolation, Schema.TaggedStruct<"SubmissionLedgerConformanceViolation", {
@@ -1,10 +1,10 @@
1
- import { AgentPolicy } from "../core/AgentPolicy.mjs";
2
1
  import { AgentId, DelegationId, SubmissionId, ThreadId, ToolCallId } from "../core/Identifiers.mjs";
2
+ import { AgentPolicy } from "../core/AgentPolicy.mjs";
3
3
  import { IdempotencyKey, JoinedToHost, Principal } from "../core/Receipt.mjs";
4
4
  import { SubagentDelegationCaps, SubagentGrant, SubagentReservationAmounts } from "../core/SubagentContract.mjs";
5
5
  import { WorkerCompletion, WorkerUpdate } from "../core/Worker.mjs";
6
6
  import { d as MessageAdmission, l as InputMessage } from "../MessagingHost-CWi_PP3g.mjs";
7
- import { D as ProducerId, H as SubmissionSettled, O as RecordEnvelope, T as PersistedJson, U as SubmissionSettledRecord, h as Digest, m as DeploymentId, p as DefinitionDigests, tt as WorkerAdmission, u as CanonicalSequence } from "../Records-C9cezOEf.mjs";
7
+ import { D as ProducerId, H as SubmissionSettled, O as RecordEnvelope, T as PersistedJson, U as SubmissionSettledRecord, h as Digest, m as DeploymentId, p as DefinitionDigests, tt as WorkerAdmission, u as CanonicalSequence } from "../Records-CsEsSW2o.mjs";
8
8
  import { AbortCommand, AbortIntentRequest, AdmissionConflict, AdmissionPolicyError, AdmissionRequest, ApprovalConflict, ApprovalDecisionCommand, ApprovalPendingSuspension, AttachChildToReservationRequest, BeginChildBudgetReleaseRequest, ChildBudgetReservationRequest, ChildReservationConflict, ChildReservationId, ChildSettledNotification, ClaimJoiningRequest, ClaimRequest, LedgerError, MarkInputAppliedRequest, MarkJoinedRequest, MarkReadyRequest, MarkUnknownRequest, OwnershipLost, OwnershipToken, ParentLinkage, RecoverySnapshotRequest, ReleaseChildBudgetRequest, ReleaseOwnershipRequest, RenewOwnershipRequest, ResolutionCompletedWithResult, ResolutionNeverHappened, ResolutionSafeToRetry, RevertJoiningRequest, SettlementConflict, SettlementFinalization, SettlementReservation, SubmissionLedger, SubmissionLookupById, SubmissionLookupByKey, SuspendRequest, UnknownResolutionCommand, UnknownResolutionConflict, WaitingChild, WaitingForChildSuspension, submissionInputRecordId, submissionSettlementId, submissionSettlementRecordId } from "./SubmissionLedger.mjs";
9
9
  import { digestJson } from "./Digest.mjs";
10
10
  import { Clock, DateTime, Duration, Effect, Option, Result, Schema, Stream } from "effect";
@@ -1,2 +1,2 @@
1
- import { cn as PendingSubmission, ln as SettledSubmission, un as SubmissionStatus } from "../Records-vFp_ZQ9Y.mjs";
1
+ import { cn as PendingSubmission, ln as SettledSubmission, un as SubmissionStatus } from "../Records-B84j3Jq_.mjs";
2
2
  export { PendingSubmission, SettledSubmission, SubmissionStatus };