effect-agent 0.1.0-beta.157 → 0.1.0-beta.159

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 (109) hide show
  1. package/dist/{Admin-BbTZHSLu.d.mts → Admin-DWDYlvvZ.d.mts} +15 -19
  2. package/dist/{Agent-BCyrGaWg.d.mts → Agent-ZfnNCQXs.d.mts} +2 -2
  3. package/dist/{AgentPolicy-CnXWWwdg.d.mts → AgentPolicy-B4oH8TbG.d.mts} +13 -1
  4. package/dist/{AgentRuntime-GQACxY_m.mjs → AgentRuntime-CVMHysXm.mjs} +52 -12
  5. package/dist/AgentRuntime-CVMHysXm.mjs.map +1 -0
  6. package/dist/{AgentRuntime-BPlAn5nA.d.mts → AgentRuntime-D1MmB_0z.d.mts} +10 -10
  7. package/dist/{ContextCompactor-CPlStZRc.d.mts → ContextCompactor-BoKQOjr5.d.mts} +2 -2
  8. package/dist/{Digest-CNHImGy0.d.mts → Digest-COAt3Orl.d.mts} +2 -2
  9. package/dist/{DurableAgentRuntime-BAQvZK1e.mjs → DurableAgentRuntime-C7A5guvq.mjs} +60 -30
  10. package/dist/DurableAgentRuntime-C7A5guvq.mjs.map +1 -0
  11. package/dist/{EventSource-CETtQTiH.d.mts → EventSource-BfNZBG4A.d.mts} +3 -3
  12. package/dist/{Messaging-Dkg87ebg.d.mts → Messaging-7VXQnWI3.d.mts} +2 -2
  13. package/dist/{Messaging-B1zumorg.d.mts → Messaging-CICd_CSi.d.mts} +4 -4
  14. package/dist/{MessagingHost-B4jqlJmx.d.mts → MessagingHost-DXwWnrMh.d.mts} +4 -4
  15. package/dist/{Output-WL7JexCm.d.mts → Output-CY7NZByV.d.mts} +2 -2
  16. package/dist/{PreparedInputAdmission-Swp9t800.d.mts → PreparedInputAdmission-VStpn8u2.d.mts} +4 -4
  17. package/dist/{Records-BxGWRs-t.d.mts → Records-Bm4Qt70a.d.mts} +3 -3
  18. package/dist/{RunEventSink-DsbcGXog.d.mts → RunEventSink-9CUdI9Ar.d.mts} +2 -2
  19. package/dist/{RunOptions-GjDlAuKh.d.mts → RunOptions-BHmBa05n.d.mts} +6 -6
  20. package/dist/{Schedule-B94iS2X3.d.mts → Schedule-Bi_XVKLF.d.mts} +2 -2
  21. package/dist/{Subagent-CLaMeZKu.d.mts → Subagent-D59om8SR.d.mts} +11 -13
  22. package/dist/{Subagent-JjcidJ7q.mjs → Subagent-DH6G120f.mjs} +3 -6
  23. package/dist/Subagent-DH6G120f.mjs.map +1 -0
  24. package/dist/{SubagentContract-DdT7Cqe6.d.mts → SubagentContract-tyN9v-Jv.d.mts} +3 -7
  25. package/dist/{SubagentHost--HBuY8fF.d.mts → SubagentHost-VTyf_wEF.d.mts} +6 -6
  26. package/dist/{Subscription-DaMCppa_.d.mts → Subscription-Bx1ZRRVS.d.mts} +6 -6
  27. package/dist/{SubscriptionInput-B0ZtrQoY.d.mts → SubscriptionInput-B5k5vb1S.d.mts} +3 -3
  28. package/dist/{Worker-2r2zGDkh.d.mts → Worker-XEBYxRQv.d.mts} +3 -3
  29. package/dist/capabilities/Commands.d.mts +1 -1
  30. package/dist/capabilities/ContextTools.d.mts +1 -135
  31. package/dist/capabilities/ContextTools.mjs +1 -40
  32. package/dist/capabilities/ContextTools.mjs.map +1 -1
  33. package/dist/capabilities/Messaging.d.mts +2 -2
  34. package/dist/capabilities/RunHooks.d.mts +1 -1
  35. package/dist/capabilities/Subagent.d.mts +4 -4
  36. package/dist/capabilities/Subagent.mjs +2 -2
  37. package/dist/capabilities/SubagentReservations.d.mts +1 -1
  38. package/dist/core/Agent.d.mts +1 -1
  39. package/dist/core/AgentPolicy.d.mts +1 -1
  40. package/dist/core/AgentPolicy.mjs +6 -0
  41. package/dist/core/AgentPolicy.mjs.map +1 -1
  42. package/dist/core/SubagentContract.d.mts +2 -2
  43. package/dist/core/SubagentContract.mjs +1 -7
  44. package/dist/core/SubagentContract.mjs.map +1 -1
  45. package/dist/core/Worker.d.mts +2 -2
  46. package/dist/durable/ActivityStore.d.mts +1 -1
  47. package/dist/durable/Admin.d.mts +1 -1
  48. package/dist/durable/AgentRegistration.d.mts +1 -1
  49. package/dist/durable/Certification.d.mts +1 -1
  50. package/dist/durable/CommittedActivity.d.mts +3 -3
  51. package/dist/durable/Digest.d.mts +1 -1
  52. package/dist/durable/DurableAgentRuntime.d.mts +1 -1
  53. package/dist/durable/DurableAgentRuntime.mjs +1 -1
  54. package/dist/durable/EventSource.d.mts +1 -1
  55. package/dist/durable/GitHubWorkflowSource.d.mts +3 -3
  56. package/dist/durable/LifecyclePublication.d.mts +1 -1
  57. package/dist/durable/MessageDelivery.d.mts +26 -12
  58. package/dist/durable/MessageDelivery.mjs +49 -17
  59. package/dist/durable/MessageDelivery.mjs.map +1 -1
  60. package/dist/durable/MessageDeliveryStoreConformance.d.mts +7 -7
  61. package/dist/durable/PersistentHistory.d.mts +1 -1
  62. package/dist/durable/PreparedInputAdmission.d.mts +1 -1
  63. package/dist/durable/Records.d.mts +1 -1
  64. package/dist/durable/Recovery.d.mts +1 -1
  65. package/dist/durable/RunJournal.d.mts +1 -1
  66. package/dist/durable/Schedule.d.mts +1 -1
  67. package/dist/durable/ScheduleStoreConformance.d.mts +1 -1
  68. package/dist/durable/ScheduleTransition.d.mts +1 -1
  69. package/dist/durable/Scheduling.d.mts +3 -3
  70. package/dist/durable/SubmissionLedger.d.mts +1 -1
  71. package/dist/durable/SubmissionLedgerConformance.d.mts +2 -2
  72. package/dist/durable/SubmissionStatus.d.mts +1 -1
  73. package/dist/durable/Subscription.d.mts +1 -1
  74. package/dist/durable/SubscriptionInput.d.mts +1 -1
  75. package/dist/durable/SubscriptionStoreConformance.d.mts +1 -1
  76. package/dist/durable/SubscriptionTools.d.mts +4 -4
  77. package/dist/durable/SubscriptionTransition.d.mts +1 -1
  78. package/dist/durable/Subscriptions.d.mts +6 -6
  79. package/dist/durable/ThreadContextHistory.d.mts +1 -1
  80. package/dist/durable/ThreadContextHistoryProjection.d.mts +1 -1
  81. package/dist/durable/ThreadInvariants.d.mts +2 -2
  82. package/dist/durable/ThreadProjection.d.mts +1 -1
  83. package/dist/durable/ThreadProjectionMaintenance.d.mts +1 -1
  84. package/dist/durable/ThreadStore.d.mts +1 -1
  85. package/dist/durable/ThreadStoreConformance.d.mts +1 -1
  86. package/dist/durable/WorkerAdmission.d.mts +4 -4
  87. package/dist/durable/WorkerHost.d.mts +6 -6
  88. package/dist/engine/AgentRuntime.d.mts +1 -1
  89. package/dist/engine/AgentRuntime.mjs +1 -1
  90. package/dist/engine/Compaction.d.mts +1 -1
  91. package/dist/engine/ContextCompactor.d.mts +1 -1
  92. package/dist/engine/MessagingHost.d.mts +1 -1
  93. package/dist/engine/Output.d.mts +1 -1
  94. package/dist/engine/RunEventSink.d.mts +1 -1
  95. package/dist/engine/RunOptions.d.mts +1 -1
  96. package/dist/engine/SubagentHost.d.mts +1 -1
  97. package/dist/index.d.mts +21 -21
  98. package/dist/index.mjs +3 -3
  99. package/package.json +1 -1
  100. package/src/capabilities/ContextTools.ts +0 -55
  101. package/src/capabilities/Subagent.ts +0 -3
  102. package/src/core/AgentPolicy.ts +6 -0
  103. package/src/core/SubagentContract.ts +0 -7
  104. package/src/durable/DurableAgentRuntime.ts +100 -121
  105. package/src/durable/MessageDelivery.ts +64 -20
  106. package/src/engine/internal/agent-runtime.ts +109 -30
  107. package/dist/AgentRuntime-GQACxY_m.mjs.map +0 -1
  108. package/dist/DurableAgentRuntime-BAQvZK1e.mjs.map +0 -1
  109. package/dist/Subagent-JjcidJ7q.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
- import { k as PersistedJson } from "./Records-BxGWRs-t.mjs";
2
- import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, t as AcceptedEvent } from "./Subscription-DaMCppa_.mjs";
1
+ import { k as PersistedJson } from "./Records-Bm4Qt70a.mjs";
2
+ import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, t as AcceptedEvent } from "./Subscription-Bx1ZRRVS.mjs";
3
3
  import { Context, Effect, Schema, Scope } from "effect";
4
4
  declare namespace EventSource_d_exports {
5
5
  export { EventSource, EventSources, NormalizedEvent, makeEventSource };
@@ -48,4 +48,4 @@ declare const makeEventSource: <Event extends Schema.Top, Parameters extends Sch
48
48
  }) => Effect.Effect<EventSource, never, Exclude<R, Scope.Scope> | Exclude<Event["DecodingServices"], Scope.Scope> | Exclude<Event["EncodingServices"], Scope.Scope> | Exclude<Parameters["DecodingServices"], Scope.Scope> | Exclude<Parameters["EncodingServices"], Scope.Scope>>;
49
49
  //#endregion
50
50
  export { makeEventSource as a, NormalizedEvent as i, EventSource_d_exports as n, EventSources as r, EventSource as t };
51
- //# sourceMappingURL=EventSource-CETtQTiH.d.mts.map
51
+ //# sourceMappingURL=EventSource-BfNZBG4A.d.mts.map
@@ -1,4 +1,4 @@
1
- import { s as SubagentExecutionFailure } from "./SubagentContract-DdT7Cqe6.mjs";
1
+ import { s as SubagentExecutionFailure } from "./SubagentContract-tyN9v-Jv.mjs";
2
2
  import { a as Receipt } from "./Receipt-BAHyigAF.mjs";
3
3
  import { r as Update } from "./AgentUpdates-DMJ-_xow.mjs";
4
4
  import { Schema } from "effect";
@@ -218,4 +218,4 @@ declare const InputMessage: Schema.Union<readonly [Schema.Struct<{
218
218
  type InputMessage = typeof InputMessage.Type;
219
219
  //#endregion
220
220
  export { MessageAdmission as a, MessageRef as c, MessageAddress as i, MessageStatus as l, InboxPage as n, MessagingError as o, InputMessage as r, PeerName as s, InboxEntry as t };
221
- //# sourceMappingURL=Messaging-Dkg87ebg.d.mts.map
221
+ //# sourceMappingURL=Messaging-7VXQnWI3.d.mts.map
@@ -1,7 +1,7 @@
1
1
  import { a as Receipt, t as IdempotencyKey } from "./Receipt-BAHyigAF.mjs";
2
- import { r as AnyDefinition } from "./Agent-BCyrGaWg.mjs";
3
- import { a as MessageAdmission, c as MessageRef, i as MessageAddress, l as MessageStatus, n as InboxPage, o as MessagingError, r as InputMessage, s as PeerName, t as InboxEntry } from "./Messaging-Dkg87ebg.mjs";
4
- import { t as MessagingHost } from "./MessagingHost-B4jqlJmx.mjs";
2
+ import { r as AnyDefinition } from "./Agent-ZfnNCQXs.mjs";
3
+ import { a as MessageAdmission, c as MessageRef, i as MessageAddress, l as MessageStatus, n as InboxPage, o as MessagingError, r as InputMessage, s as PeerName, t as InboxEntry } from "./Messaging-7VXQnWI3.mjs";
4
+ import { t as MessagingHost } from "./MessagingHost-DXwWnrMh.mjs";
5
5
  import { Tool, Toolkit } from "effect/unstable/ai";
6
6
  import { Crypto, Effect, Schema } from "effect";
7
7
  declare namespace Messaging_d_exports {
@@ -1064,4 +1064,4 @@ declare const retryTool: <const Name extends string, Input extends Schema.Top>(d
1064
1064
  };
1065
1065
  //#endregion
1066
1066
  export { inspect as a, reply as c, retryTool as d, send as f, inboxTool as i, replyTool as l, Peer as n, inspectTool as o, sendTool as p, inbox as r, peer as s, Messaging_d_exports as t, retry as u };
1067
- //# sourceMappingURL=Messaging-B1zumorg.d.mts.map
1067
+ //# sourceMappingURL=Messaging-CICd_CSi.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
2
2
  import { r as Principal, t as IdempotencyKey } from "./Receipt-BAHyigAF.mjs";
3
- import { r as AnyDefinition } from "./Agent-BCyrGaWg.mjs";
4
- import { h as WorkerSource } from "./Worker-2r2zGDkh.mjs";
5
- import { c as MessageRef, i as MessageAddress, l as MessageStatus, n as InboxPage, o as MessagingError } from "./Messaging-Dkg87ebg.mjs";
3
+ import { r as AnyDefinition } from "./Agent-ZfnNCQXs.mjs";
4
+ import { h as WorkerSource } from "./Worker-XEBYxRQv.mjs";
5
+ import { c as MessageRef, i as MessageAddress, l as MessageStatus, n as InboxPage, o as MessagingError } from "./Messaging-7VXQnWI3.mjs";
6
6
  import { Context, Effect } from "effect";
7
7
  declare namespace MessagingHost_d_exports {
8
8
  export { MessagingHost, PeerAuthorizationRequest, PeerAuthorizer, PeerDeliveryLifetime, PeerMessageCapacity, PeerRoutes, PeerTarget, SendPeerMessage };
@@ -71,4 +71,4 @@ declare const PeerDeliveryLifetime: Context.Reference<number>;
71
71
  declare const PeerMessageCapacity: Context.Reference<number>;
72
72
  //#endregion
73
73
  export { PeerDeliveryLifetime as a, PeerTarget as c, PeerAuthorizer as i, SendPeerMessage as l, MessagingHost_d_exports as n, PeerMessageCapacity as o, PeerAuthorizationRequest as r, PeerRoutes as s, MessagingHost as t };
74
- //# sourceMappingURL=MessagingHost-B4jqlJmx.d.mts.map
74
+ //# sourceMappingURL=MessagingHost-DXwWnrMh.d.mts.map
@@ -1,4 +1,4 @@
1
- import "./Agent-BCyrGaWg.mjs";
1
+ import "./Agent-ZfnNCQXs.mjs";
2
2
  import { Prompt } from "effect/unstable/ai";
3
3
  import { Schema } from "effect";
4
4
  //#region src/engine/internal/output-contract.d.ts
@@ -22,4 +22,4 @@ declare namespace Output_d_exports {
22
22
  }
23
23
  //#endregion
24
24
  export { textOutput as n, Output_d_exports as t };
25
- //# sourceMappingURL=Output-WL7JexCm.d.mts.map
25
+ //# sourceMappingURL=Output-CY7NZByV.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { a as Receipt } from "./Receipt-BAHyigAF.mjs";
2
2
  import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
3
- import { Oi as SubmissionStatus } from "./Admin-BbTZHSLu.mjs";
4
- import { H as ScheduledInputRefused, V as ScheduledInputFailure, j as ScheduleStorageError } from "./Schedule-B94iS2X3.mjs";
5
- import { a as PreparedInput } from "./Subscription-DaMCppa_.mjs";
3
+ import { Oi as SubmissionStatus } from "./Admin-DWDYlvvZ.mjs";
4
+ import { H as ScheduledInputRefused, V as ScheduledInputFailure, j as ScheduleStorageError } from "./Schedule-Bi_XVKLF.mjs";
5
+ import { a as PreparedInput } from "./Subscription-Bx1ZRRVS.mjs";
6
6
  import { Context, Effect } from "effect";
7
7
  declare namespace PreparedInputAdmission_d_exports {
8
8
  export { PreparedInputAdmission, admitPreparedInput };
@@ -39,4 +39,4 @@ declare const admitPreparedInput: <R>(submit: Effect.Effect<Receipt, ScheduledIn
39
39
  }, ScheduleStorageError, R>;
40
40
  //#endregion
41
41
  export { PreparedInputAdmission_d_exports as n, admitPreparedInput as r, PreparedInputAdmission as t };
42
- //# sourceMappingURL=PreparedInputAdmission-Swp9t800.d.mts.map
42
+ //# sourceMappingURL=PreparedInputAdmission-VStpn8u2.d.mts.map
@@ -1,10 +1,10 @@
1
- import { d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure, u as SubagentParentLink } from "./SubagentContract-DdT7Cqe6.mjs";
1
+ import { d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure, u as SubagentParentLink } from "./SubagentContract-tyN9v-Jv.mjs";
2
2
  import { a as Receipt } from "./Receipt-BAHyigAF.mjs";
3
3
  import { r as Update } from "./AgentUpdates-DMJ-_xow.mjs";
4
4
  import { c as Selection, l as Snapshot } from "./ToolExposure-r2eOWk4F.mjs";
5
5
  import { l as RunUsageSummary, r as ModelCallUsage, s as RunTotals } from "./Usage-BNjPR7Zr.mjs";
6
6
  import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
7
- import { t as AgentPolicy } from "./AgentPolicy-CnXWWwdg.mjs";
7
+ import { t as AgentPolicy } from "./AgentPolicy-B4oH8TbG.mjs";
8
8
  import { Schema } from "effect";
9
9
  declare namespace Records_d_exports {
10
10
  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, ModelCallAborted, ModelCompleted, ModelResponseInterrupted, ModelResponseRecorded, ObservationOffset, PeerMessagePrepared, PersistedJson, ProducerEpoch, ProducerId, RecordEnvelope, RecordId, RepairAnnotated, ReplayContract, RunCompleted, RunDurationExhausted, RunFailed, RunPolicyUsageReserved, RunStartedRecord, SettlementFailureDiagnostic, SettlementOutcome, SubagentJoined, SubagentLineageRecorded, SubagentRequested, SubagentStarted, SubmissionSettled, SubmissionSettledRecord, SubtreeBudgetReserved, ThreadCreated, ToolApprovalDecided, ToolApprovalRequested, ToolCallPrepared, ToolCallResolution, ToolCallResolved, ToolCallSettled, ToolCallUnknown, ToolOperation, ToolStepSettled, ToolUnavailable, UserInputRecorded, WorkerAdmission, WorkerContinuation, WorkerInputCompleted, WorkerInputRequested, WorkerOrigin, WorkerOriginRecorded, WorkerReportPrepared, WorkerReportRefused, WorkerReportingIntent, WorkerStopRequested };
@@ -1112,4 +1112,4 @@ declare class CanonicalRecordEnvelope extends CanonicalRecordEnvelope_base {}
1112
1112
  declare const CURRENT_CANONICAL_SCHEMA_VERSION: 1;
1113
1113
  //#endregion
1114
1114
  export { ToolApprovalRequested as $, ProducerEpoch as A, RunPolicyUsageReserved as B, ModelCallAborted as C, ObservationOffset as D, ModelResponseRecorded as E, RepairAnnotated as F, SubagentLineageRecorded as G, SettlementFailureDiagnostic as H, ReplayContract as I, SubmissionSettled as J, SubagentRequested as K, RunCompleted as L, RecordEnvelope as M, RecordId as N, PeerMessagePrepared as O, Records_d_exports as P, ToolApprovalDecided as Q, RunDurationExhausted as R, MAX_PERSISTED_JSON_NODES as S, ModelResponseInterrupted as T, SettlementOutcome as U, RunStartedRecord as V, SubagentJoined as W, SubtreeBudgetReserved as X, SubmissionSettledRecord as Y, ThreadCreated as Z, Digest as _, WorkerReportingIntent as _t, BatchId as a, ToolOperation as at, MAX_PERSISTED_JSON_COLLECTION_LENGTH as b, CanonicalRecord as c, UserInputRecorded as ct, CanonicalSequence as d, WorkerInputCompleted as dt, ToolCallPrepared as et, CompactionCreated as f, WorkerInputRequested as ft, DeploymentId as g, WorkerReportRefused as gt, DefinitionDigests as h, WorkerReportPrepared as ht, ApprovalDecision as i, ToolCallUnknown as it, ProducerId as j, PersistedJson as k, CanonicalRecordEnvelope as l, WorkerAdmission as lt, DefinitionDigestInput as m, WorkerOriginRecorded as mt, AbortedSubmissionSettled as n, ToolCallResolved as nt, CURRENT_CANONICAL_SCHEMA_VERSION as o, ToolStepSettled as ot, CompletedSubmissionSettled as p, WorkerOrigin as pt, SubagentStarted as q, AgentUpdateEmitted as r, ToolCallSettled as rt, CanonicalBatch as s, ToolUnavailable as st, AbortRequested as t, ToolCallResolution as tt, CanonicalRecordPayload as u, WorkerContinuation as ut, FailedSubmissionSettled as v, WorkerStopRequested as vt, ModelCompleted as w, MAX_PERSISTED_JSON_DEPTH as x, MAX_PERSISTED_JSON_BYTES as y, RunFailed as z };
1115
- //# sourceMappingURL=Records-BxGWRs-t.d.mts.map
1115
+ //# sourceMappingURL=Records-Bm4Qt70a.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { d as ToolCallId, r as DelegationId, s as RunId, t as AgentId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
2
- import { n as DelegationDepth } from "./SubagentContract-DdT7Cqe6.mjs";
2
+ import { n as DelegationDepth } from "./SubagentContract-tyN9v-Jv.mjs";
3
3
  import { s as RunTotals } from "./Usage-BNjPR7Zr.mjs";
4
4
  import { Context, Effect, Schema } from "effect";
5
5
  declare namespace RunEventSink_d_exports {
@@ -105,4 +105,4 @@ declare const RunEventSink_base: Context.ServiceClass<RunEventSink, "@effect-age
105
105
  declare class RunEventSink extends RunEventSink_base {}
106
106
  //#endregion
107
107
  export { SubagentCompletedPayload as a, SubagentFailedPayload as c, SubagentProgressPayload as d, SubagentRequestedPayload as f, RunEventSink_d_exports as i, SubagentInterruptedPayload as l, RunEventSinkClosedError as n, SubagentEventBasePayload as o, SubagentStartedPayload as p, RunEventSinkService as r, SubagentEventPayload as s, RunEventSink as t, SubagentJoinedPayload as u };
108
- //# sourceMappingURL=RunEventSink-DsbcGXog.d.mts.map
108
+ //# sourceMappingURL=RunEventSink-9CUdI9Ar.d.mts.map
@@ -1,17 +1,17 @@
1
1
  import { d as ToolCallId, f as TurnId, l as SubmissionId, o as ReceiptId, r as DelegationId, s as RunId, t as AgentId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
2
- import { f as ToolExecutionKind, i as SubagentBudgetReservation, l as SubagentGrant, n as DelegationDepth, u as SubagentParentLink } from "./SubagentContract-DdT7Cqe6.mjs";
2
+ import { f as ToolExecutionKind, i as SubagentBudgetReservation, l as SubagentGrant, n as DelegationDepth, u as SubagentParentLink } from "./SubagentContract-tyN9v-Jv.mjs";
3
3
  import { i as UpdateError, r as Update } from "./AgentUpdates-DMJ-_xow.mjs";
4
4
  import { c as Selection, l as Snapshot } from "./ToolExposure-r2eOWk4F.mjs";
5
5
  import { r as ModelCallUsage, s as RunTotals, t as ChildRunUsage } from "./Usage-BNjPR7Zr.mjs";
6
6
  import { a as AgentInputError, u as AgentToolAuthorizationCheckError } from "./AgentError-Bn1ytXRD.mjs";
7
7
  import { t as ToolParameterRejection } from "./ToolResult-BKdqWRff.mjs";
8
- import { t as AgentPolicy } from "./AgentPolicy-CnXWWwdg.mjs";
9
- import { r as AnyDefinition } from "./Agent-BCyrGaWg.mjs";
8
+ import { t as AgentPolicy } from "./AgentPolicy-B4oH8TbG.mjs";
9
+ import { r as AnyDefinition } from "./Agent-ZfnNCQXs.mjs";
10
10
  import { o as MemoryRecallError } from "./MemoryReference-B8Q3UJoJ.mjs";
11
11
  import { t as RunPolicyUsage } from "./RunPolicyUsage-CUudVtg_.mjs";
12
- import { a as WorkerBudgetScope, r as FrameworkMessage } from "./Worker-2r2zGDkh.mjs";
12
+ import { a as WorkerBudgetScope, r as FrameworkMessage } from "./Worker-XEBYxRQv.mjs";
13
13
  import { c as ModelCallContext, r as ContextRolloverSelection } from "./ContextWindow-DRQ5Mbm2.mjs";
14
- import { c as ContextMessageTokenEstimator, n as CompactionError } from "./ContextCompactor-CPlStZRc.mjs";
14
+ import { c as ContextMessageTokenEstimator, n as CompactionError } from "./ContextCompactor-BoKQOjr5.mjs";
15
15
  import { l as ToolExecutionClassValue, o as RunStepHook } from "./DurableStep-Cry_iol4.mjs";
16
16
  import { LanguageModel, Model, Prompt, Response } from "effect/unstable/ai";
17
17
  import { Cause, Context, DateTime, Effect, Layer, Schema } from "effect";
@@ -957,4 +957,4 @@ type RunOptionsError<Options> = Options extends RunOptions<infer Error, infer _R
957
957
  type RunOptionsRequirements<Options> = Options extends RunOptions<infer _Error, infer Requirements> ? Requirements : never;
958
958
  //#endregion
959
959
  export { RunTurnResponseCommit as $, RunInputCommand as A, RunSubagentChildIdentity as B, RunContextPreparationPassthrough as C, RunCostEstimateValue as D, RunCostEstimateRequest as E, RunOptions_d_exports as F, RunToolAuthorization as G, RunSubagentEstablishRequest as H, RunResumeUsage as I, RunToolAuthorizationRequest as J, RunToolAuthorizationDecision as K, RunResumeUsageSchema as L, RunOptions as M, RunOptionsError as N, RunCostEstimator as O, RunOptionsRequirements as P, RunTransientContextHook as Q, RunSchedulingHook as R, RunContextPreparationError as S, RunCostEstimate as T, RunSubagentHook as U, RunSubagentDigests as V, RunSubagentJoinRequest as W, RunToolFailureObserver as X, RunToolCallDescriptor as Y, RunToolScheduling as Z, RunBudgetHook as _, ChildEstablishWaiting as a, RunUsageDelta as at, RunContextHook as b, ModelToolFailure as c, ProgrammaticPreflightFailure as d, RunTurnResume as et, ProgrammaticToolFailure as f, RunApprovalRequest as g, RunApprovalHook as h, ChildEstablishStatus as i, RunTurnUsage as it, RunInputHook as j, RunDurabilityHook as k, ModelUsageAccounting as l, RunApprovalDecision as m, ChildEstablishDenied as n, RunTurnResumeSettledCall as nt, CommandDrainPolicy as o, ToolFailureObservation as ot, ResolvedModelCall as p, RunToolAuthorizationHook as q, ChildEstablishSettled as r, RunTurnResumeSettledCallSchema as rt, CurrentToolFailureObserver as s, toolFailureObserverLayer as st, AgentUpdateAcceptance as t, RunTurnResumeCall as tt, PreparedRunContext as u, RunBufferLimits as v, RunContextRequest as w, RunContextPreparation as x, RunCompactionCommit as y, RunSchedulingOverride as z };
960
- //# sourceMappingURL=RunOptions-GjDlAuKh.d.mts.map
960
+ //# sourceMappingURL=RunOptions-BHmBa05n.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { a as Receipt } from "./Receipt-BAHyigAF.mjs";
2
2
  import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
3
- import { _ as Digest, h as DefinitionDigests } from "./Records-BxGWRs-t.mjs";
3
+ import { _ as Digest, h as DefinitionDigests } from "./Records-Bm4Qt70a.mjs";
4
4
  import { Context, Effect, Schema } from "effect";
5
5
  declare namespace Schedule_d_exports {
6
6
  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 };
@@ -844,4 +844,4 @@ declare const ScheduleFailpoint: Context.Reference<{
844
844
  }>;
845
845
  //#endregion
846
846
  export { ScheduleSnapshotPage as A, ScheduledInputAdmission as B, ScheduleRecord as C, ScheduleScope as D, ScheduleRetryReason as E, ScheduleTimingRequest as F, defaultSchedulingLimits as G, ScheduledInputRefused as H, ScheduleValidationError as I, ScheduleWake as L, ScheduleStore as M, ScheduleStoreFailure as N, ScheduleSkippedRange as O, ScheduleTiming as P, Schedule_d_exports as R, SchedulePending as S, ScheduleRetry as T, ScheduledInputRetryable as U, ScheduledInputFailure as V, SchedulingLimits as W, ScheduleNotFound as _, ScheduleChange as a, SchedulePage as b, ScheduleDestination as c, ScheduleFailpointError as d, ScheduleId as f, ScheduleManagementOperation as g, ScheduleManagementAuthorization as h, ScheduleCapacityError as i, ScheduleStorageError as j, ScheduleSnapshot as k, ScheduleDueCursor as l, ScheduleKey as m, ScheduleAuthorizationError as n, ScheduleConfiguration as o, ScheduleInstant as p, ScheduleAuthorizer as r, ScheduleConflict as s, ScheduleAuthorizationDecision as t, ScheduleFailpoint as u, ScheduleOccurrenceAuthorization as v, ScheduleRefusal as w, SchedulePageRequest as x, ScheduleOwner as y, ScheduledEnvelope as z };
847
- //# sourceMappingURL=Schedule-B94iS2X3.d.mts.map
847
+ //# sourceMappingURL=Schedule-Bi_XVKLF.d.mts.map
@@ -1,18 +1,18 @@
1
1
  import { d as ToolCallId, r as DelegationId, t as AgentId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
2
- import { c as SubagentExecutionFailureClassification, d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure } from "./SubagentContract-DdT7Cqe6.mjs";
2
+ import { c as SubagentExecutionFailureClassification, d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure } from "./SubagentContract-tyN9v-Jv.mjs";
3
3
  import { SubagentBudgetExhausted, SubagentReservations } from "./capabilities/SubagentReservations.mjs";
4
4
  import { a as Receipt, n as JoinedToHost, t as IdempotencyKey } from "./Receipt-BAHyigAF.mjs";
5
5
  import { r as Update } from "./AgentUpdates-DMJ-_xow.mjs";
6
6
  import { s as RunTotals } from "./Usage-BNjPR7Zr.mjs";
7
7
  import { t as ThreadHistory } from "./ThreadHistory-FD-o4TsR.mjs";
8
8
  import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
9
- import { E as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, r as AnyDefinition, y as ModelServices } from "./Agent-BCyrGaWg.mjs";
10
- import { a as WorkerBudgetScope, c as WorkerError, f as WorkerRef, o as WorkerCompletion, p as WorkerReport } from "./Worker-2r2zGDkh.mjs";
11
- import { V as RunSubagentDigests, x as RunContextPreparation } from "./RunOptions-GjDlAuKh.mjs";
12
- import { c as MessageRef, l as MessageStatus } from "./Messaging-Dkg87ebg.mjs";
13
- import { f as WorkerReporting, o as SubagentHost } from "./SubagentHost--HBuY8fF.mjs";
14
- import { S as ToolCallWaiting, _ as SubagentDurability, b as SubagentDurabilityError, c as AgentSpawner, h as SpawnRunOptions, l as AgentSpawnerParent, o as AgentRuntimeFailure, p as RuntimeBinding, s as AgentRuntimeRequirements } from "./AgentRuntime-BPlAn5nA.mjs";
15
- import { t as RunEventSink } from "./RunEventSink-DsbcGXog.mjs";
9
+ import { E as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, r as AnyDefinition, y as ModelServices } from "./Agent-ZfnNCQXs.mjs";
10
+ import { a as WorkerBudgetScope, c as WorkerError, f as WorkerRef, o as WorkerCompletion, p as WorkerReport } from "./Worker-XEBYxRQv.mjs";
11
+ import { V as RunSubagentDigests, x as RunContextPreparation } from "./RunOptions-BHmBa05n.mjs";
12
+ import { c as MessageRef, l as MessageStatus } from "./Messaging-7VXQnWI3.mjs";
13
+ import { f as WorkerReporting, o as SubagentHost } from "./SubagentHost-VTyf_wEF.mjs";
14
+ import { S as ToolCallWaiting, _ as SubagentDurability, b as SubagentDurabilityError, c as AgentSpawner, h as SpawnRunOptions, l as AgentSpawnerParent, o as AgentRuntimeFailure, p as RuntimeBinding, s as AgentRuntimeRequirements } from "./AgentRuntime-D1MmB_0z.mjs";
15
+ import { t as RunEventSink } from "./RunEventSink-9CUdI9Ar.mjs";
16
16
  import { Tool, Toolkit } from "effect/unstable/ai";
17
17
  import { Crypto, Duration, Effect, Layer, Schema, Scope, Stream } from "effect";
18
18
  //#region src/capabilities/internal/subagent-contract.d.ts
@@ -1285,7 +1285,7 @@ declare const background$1: <const Name extends string, Input extends Schema.Top
1285
1285
  layer: Layer.Layer<Tool.HandlersFor<BackgroundTools<Name, Parameters, Success, Failure, Selected>>, never, (Selected["followUp"] extends (infer T) ? T extends Selected["followUp"] ? T extends true ? Prepare | Input["EncodingServices"] | Parameters["EncodingServices"] : never : never : never) | (Selected["inspect"] extends (infer T_1) ? T_1 extends Selected["inspect"] ? T_1 extends true ? Project | Output["DecodingServices"] | Parameters["DecodingServices"] | Success["EncodingServices"] : never : never : never) | (Selected["reportToParent"] extends (infer T_2) ? T_2 extends Selected["reportToParent"] ? T_2 extends true ? Exclude<Project, Scope.Scope> | Exclude<Output["DecodingServices"], Scope.Scope> | Exclude<Parameters["DecodingServices"], Scope.Scope> | Exclude<Success["EncodingServices"], Scope.Scope> : never : never : never) | (Selected["start"] extends (infer T_3) ? T_3 extends Selected["start"] ? T_3 extends true ? Prepare | Input["EncodingServices"] | Parameters["EncodingServices"] : never : never : never)>;
1286
1286
  }>;
1287
1287
  declare namespace Subagent_d_exports {
1288
- export { BackgroundOptions, BackgroundTools, SubagentChildRunFailure, SubagentContainedFailure, SubagentDeclarationOptions, SubagentDefineOptions, SubagentDelegation, SubagentDurableAccounting, SubagentDurableOptions, SubagentExecutionFailure, SubagentExecutionFailureClassification, SubagentFailureMode, SubagentGrant, SubagentLayerRequirements, SubagentPolicy, SubagentPolicyInput, SubagentPrepareContext, SubagentPrestartDenied, SubagentProjectionFailure, SubagentResult, SubagentResultContext, SubagentReturnModeFailure, SubagentRuntimeOptions, SubagentTool, SubagentToolFailure, SubagentTools, Worker, WorkerCompletion, WorkerObservation, WorkerReport, awaitWorker as await, background, cancel, define, delegationAllocationFromPolicy, delegationCapsFromPolicy, followUp, inspect, layer, list, make, observe, start, stop };
1288
+ export { BackgroundOptions, BackgroundTools, SubagentChildRunFailure, SubagentContainedFailure, SubagentDeclarationOptions, SubagentDefineOptions, SubagentDelegation, SubagentDurableAccounting, SubagentDurableOptions, SubagentExecutionFailure, SubagentExecutionFailureClassification, SubagentFailureMode, SubagentGrant, SubagentLayerRequirements, SubagentPolicy, SubagentPolicyInput, SubagentPrepareContext, SubagentPrestartDenied, SubagentProjectionFailure, SubagentResult, SubagentResultContext, SubagentReturnModeFailure, SubagentRuntimeOptions, SubagentTool, SubagentToolFailure, SubagentTools, Worker, WorkerCompletion, WorkerObservation, WorkerReport, awaitWorker as await, background, cancel, delegationAllocationFromPolicy, delegationCapsFromPolicy, followUp, inspect, layer, list, make, observe, start, stop };
1289
1289
  }
1290
1290
  /**
1291
1291
  * Bounded parent metadata visible to `prepareInput`.
@@ -1509,8 +1509,6 @@ declare function make<const Name extends string, Input extends Schema.Top, Outpu
1509
1509
  }): SubagentDelegation<Name, Input, Output, Instructions, Tools, Parameters, Success, Failure, Prepare, Project> & {
1510
1510
  readonly target: Target;
1511
1511
  };
1512
- /** @deprecated Use `Subagent.make`. */
1513
- declare const define: typeof make;
1514
1512
  type InstructionResultOf<Instructions, Input> = Instructions extends ((input: Input) => infer Result) ? Result : Instructions;
1515
1513
  type InstructionErrorOf<Instructions, Input> = InstructionResultOf<Instructions, Input> extends Effect.Effect<infer _Success, infer Error, infer _Requirements> ? Error : never;
1516
1514
  type InstructionRequirementsOf<Instructions, Input> = InstructionResultOf<Instructions, Input> extends Effect.Effect<infer _Success, infer _Error, infer Requirements> ? Requirements : never;
@@ -1648,5 +1646,5 @@ declare function background<const Name extends string, Input extends Schema.Top,
1648
1646
  }, selected: Selected): ReturnType<typeof background$1<Name, Input, Output, Input, SubagentResult<Output>, typeof Schema.Never, never, never, Selected>>;
1649
1647
  declare function background<const Name extends string, Input extends Schema.Top, Output extends Schema.Top, Parameters extends Schema.Top, Success extends Schema.Top, Failure extends Schema.Top, Prepare, Project, const Selected extends BackgroundOptions>(declaration: Declaration<Name, Input, Output, Parameters, Success, Failure, Prepare, Project>, selected: Selected): ReturnType<typeof background$1<Name, Input, Output, Parameters, Success, Failure, Prepare, Project, Selected>>;
1650
1648
  //#endregion
1651
- export { inspect as A, delegationCapsFromPolicy as B, BackgroundOptions as C, awaitWorker as D, WorkerObservation as E, SubagentPolicy as F, SubagentPolicyInput as I, SubagentPrestartDenied as L, observe as M, start as N, cancel as O, stop as P, SubagentProjectionFailure as R, make as S, Worker as T, SubagentTools as _, SubagentDelegation as a, define as b, SubagentFailureMode as c, SubagentResult as d, SubagentResultContext as f, SubagentToolFailure as g, SubagentTool as h, SubagentDefineOptions as i, list as j, followUp as k, SubagentLayerRequirements as l, SubagentRuntimeOptions as m, SubagentContainedFailure as n, SubagentDurableAccounting as o, SubagentReturnModeFailure as p, SubagentDeclarationOptions as r, SubagentDurableOptions as s, SubagentChildRunFailure as t, SubagentPrepareContext as u, Subagent_d_exports as v, BackgroundTools as w, layer as x, background as y, delegationAllocationFromPolicy as z };
1652
- //# sourceMappingURL=Subagent-CLaMeZKu.d.mts.map
1649
+ export { list as A, BackgroundTools as C, cancel as D, awaitWorker as E, SubagentPolicyInput as F, SubagentPrestartDenied as I, SubagentProjectionFailure as L, start as M, stop as N, followUp as O, SubagentPolicy as P, delegationAllocationFromPolicy as R, BackgroundOptions as S, WorkerObservation as T, SubagentTools as _, SubagentDelegation as a, layer as b, SubagentFailureMode as c, SubagentResult as d, SubagentResultContext as f, SubagentToolFailure as g, SubagentTool as h, SubagentDefineOptions as i, observe as j, inspect as k, SubagentLayerRequirements as l, SubagentRuntimeOptions as m, SubagentContainedFailure as n, SubagentDurableAccounting as o, SubagentReturnModeFailure as p, SubagentDeclarationOptions as r, SubagentDurableOptions as s, SubagentChildRunFailure as t, SubagentPrepareContext as u, Subagent_d_exports as v, Worker as w, make as x, background as y, delegationCapsFromPolicy as z };
1650
+ //# sourceMappingURL=Subagent-D59om8SR.d.mts.map
@@ -9,7 +9,7 @@ import { BackgroundSpawnTool, DelegationTool, SubagentBudgetReservation, Subagen
9
9
  import { RunUsageReport, unknownRunTotals } from "./core/Usage.mjs";
10
10
  import { C as MessageStatus, S as MessageRef, _ as WorkerStop, c as WorkerError, d as WorkerPage, f as WorkerRef, g as WorkerStarted, o as WorkerCompletion, p as WorkerReport, s as WorkerContext, v as WorkerStopped, y as WorkerSummary } from "./Worker-CfwzMZEK.mjs";
11
11
  import { BackgroundReporting, SubagentHost, WorkerReportPreparationFailure } from "./engine/SubagentHost.mjs";
12
- import { a as SubagentDurability, i as AgentSpawner, o as SubagentDurabilityError, s as ToolCallWaiting } from "./AgentRuntime-GQACxY_m.mjs";
12
+ import { a as SubagentDurability, i as AgentSpawner, o as SubagentDurabilityError, s as ToolCallWaiting } from "./AgentRuntime-CVMHysXm.mjs";
13
13
  import { RunEventSink } from "./engine/RunEventSink.mjs";
14
14
  import { SubagentBudgetExhausted, SubagentObservedUsage, SubagentReservationRequest, SubagentReservations, makeBudgetReservationId } from "./capabilities/SubagentReservations.mjs";
15
15
  import { t as utf8Bytes } from "./utf8-BYfhEkcj.mjs";
@@ -868,7 +868,6 @@ var Subagent_exports = /* @__PURE__ */ __exportAll({
868
868
  await: () => awaitWorker,
869
869
  background: () => background,
870
870
  cancel: () => cancel,
871
- define: () => define,
872
871
  delegationAllocationFromPolicy: () => delegationAllocationFromPolicy,
873
872
  delegationCapsFromPolicy: () => delegationCapsFromPolicy,
874
873
  followUp: () => followUp,
@@ -978,8 +977,6 @@ function make(name, options) {
978
977
  failureMode: "error"
979
978
  });
980
979
  }
981
- /** @deprecated Use `Subagent.make`. */
982
- const define = make;
983
980
  /**
984
981
  * The conservative final accounting summary the durable delegation handler
985
982
  * attaches to every settlement join. The handler has no live child usage stream at durable join
@@ -1497,6 +1494,6 @@ function background(targetOrDeclaration, selected) {
1497
1494
  return background$1(declaration, selected);
1498
1495
  }
1499
1496
  //#endregion
1500
- export { delegationCapsFromPolicy as S, stop as _, define as a, SubagentProjectionFailure as b, Worker as c, cancel as d, followUp as f, start as g, observe as h, background as i, WorkerObservation as l, list as m, SubagentResult as n, layer as o, inspect as p, Subagent_exports as r, make as s, SubagentDurableAccounting as t, awaitWorker as u, SubagentPolicy as v, delegationAllocationFromPolicy as x, SubagentPrestartDenied as y };
1497
+ export { SubagentPolicy as _, layer as a, delegationAllocationFromPolicy as b, WorkerObservation as c, followUp as d, inspect as f, stop as g, start as h, background as i, awaitWorker as l, observe as m, SubagentResult as n, make as o, list as p, Subagent_exports as r, Worker as s, SubagentDurableAccounting as t, cancel as u, SubagentPrestartDenied as v, delegationCapsFromPolicy as x, SubagentProjectionFailure as y };
1501
1498
 
1502
- //# sourceMappingURL=Subagent-JjcidJ7q.mjs.map
1499
+ //# sourceMappingURL=Subagent-DH6G120f.mjs.map