@yielded/agent 0.1.0-beta.181 → 0.1.0-beta.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Admin-NvXFPDIM.d.mts → Admin-C4mPa0M2.d.mts} +5 -5
- package/dist/{AgentRuntime-BAExRlgu.mjs → AgentRuntime-1OjlOCa9.mjs} +10 -6
- package/dist/AgentRuntime-1OjlOCa9.mjs.map +1 -0
- package/dist/{AgentRuntime-Dx5u_FJD.d.mts → AgentRuntime-CVsnQBPe.d.mts} +4 -4
- package/dist/{DurableAgentRuntime-HH2muFrT.mjs → DurableAgentRuntime-D2I_T2Yt.mjs} +12 -7
- package/dist/DurableAgentRuntime-D2I_T2Yt.mjs.map +1 -0
- package/dist/{EventSource-DNyaWmyQ.d.mts → EventSource-gc82d-f6.d.mts} +2 -2
- package/dist/InMemory.d.mts +1 -1
- package/dist/{MessageDelivery-CLzWJImC.d.mts → MessageDelivery-DrQKvh93.d.mts} +4 -4
- package/dist/{PreparedInputAdmission-BQ9UCLFS.d.mts → PreparedInputAdmission-CrqdFUd8.d.mts} +3 -3
- package/dist/{RunContinuation-CL0wBsQE.d.mts → RunContinuation-DMbA81sZ.d.mts} +4 -3
- package/dist/{RunContinuation-BF95Ncv2.mjs → RunContinuation-DWiO2K9D.mjs} +6 -1
- package/dist/{RunContinuation-BF95Ncv2.mjs.map → RunContinuation-DWiO2K9D.mjs.map} +1 -1
- package/dist/{RunEvent-C5jVQZ6K.d.mts → RunEvent-Bh1p4zAO.d.mts} +2 -2
- package/dist/{RunOptions-BANtohGk.d.mts → RunOptions-aBHR-Eqm.d.mts} +6 -3
- package/dist/{Subagent-D68fe7mr.mjs → Subagent-BRiDyUS4.mjs} +2 -2
- package/dist/{Subagent-D68fe7mr.mjs.map → Subagent-BRiDyUS4.mjs.map} +1 -1
- package/dist/{Subagent-5ulnV6An.d.mts → Subagent-FypBXZP1.d.mts} +4 -4
- package/dist/{Subscription-D2yn6Eo3.d.mts → Subscription-Bx0LiX3x.d.mts} +2 -2
- package/dist/{SubscriptionInput-Cog4x7Rd.d.mts → SubscriptionInput-CBFCfuOF.d.mts} +2 -2
- package/dist/{ThreadHistory-KPPBJLJb.d.mts → ThreadHistory-ajQhqZDY.d.mts} +2 -2
- package/dist/{ThreadImport-em89zmM-.d.mts → ThreadImport-DTV_ario.d.mts} +4 -4
- package/dist/{ThreadImport-BoTfjjrz.mjs → ThreadImport-DlCLjRHK.mjs} +2 -2
- package/dist/{ThreadImport-BoTfjjrz.mjs.map → ThreadImport-DlCLjRHK.mjs.map} +1 -1
- package/dist/{WorkerAdmission-DrxDrLII.mjs → WorkerAdmission-Cxg_REhE.mjs} +2 -2
- package/dist/{WorkerAdmission-DrxDrLII.mjs.map → WorkerAdmission-Cxg_REhE.mjs.map} +1 -1
- package/dist/{agent-registration-BovXT8jc.mjs → agent-registration-C6tkQz8r.mjs} +2 -2
- package/dist/{agent-registration-BovXT8jc.mjs.map → agent-registration-C6tkQz8r.mjs.map} +1 -1
- package/dist/capabilities/Commands.d.mts +1 -1
- package/dist/capabilities/Redaction.d.mts +1 -1
- package/dist/capabilities/RunHooks.d.mts +1 -1
- package/dist/capabilities/Subagent.d.mts +1 -1
- package/dist/capabilities/Subagent.mjs +1 -1
- package/dist/core/RunEvent.d.mts +1 -1
- package/dist/core/RunEvent.mjs +1 -1
- package/dist/core/RunEvent.mjs.map +1 -1
- package/dist/durable/Admin.d.mts +1 -1
- package/dist/durable/AgentRegistration.d.mts +1 -1
- package/dist/durable/AgentRegistration.mjs +1 -1
- package/dist/durable/Certification.d.mts +1 -1
- package/dist/durable/CommittedActivity.d.mts +1 -1
- package/dist/durable/DurableAgentRuntime.d.mts +1 -1
- package/dist/durable/DurableAgentRuntime.mjs +2 -2
- package/dist/durable/EventSource.d.mts +1 -1
- package/dist/durable/GitHubWorkflowSource.d.mts +3 -3
- package/dist/durable/LifecyclePublication.d.mts +1 -1
- package/dist/durable/MessageDelivery.d.mts +1 -1
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +40 -40
- package/dist/durable/PersistentHistory.d.mts +2 -2
- package/dist/durable/PreparedInputAdmission.d.mts +1 -1
- package/dist/durable/Recovery.d.mts +1 -1
- package/dist/durable/RunContinuation.d.mts +2 -2
- package/dist/durable/RunContinuation.mjs +1 -1
- package/dist/durable/RunJournal.d.mts +1 -1
- package/dist/durable/RunStorage.d.mts +1 -1
- package/dist/durable/Scheduling.d.mts +1 -1
- package/dist/durable/SettlementPublisher.d.mts +1 -1
- package/dist/durable/SubmissionLedger.d.mts +1 -1
- package/dist/durable/SubmissionLedgerConformance.d.mts +1 -1
- package/dist/durable/SubmissionStatus.d.mts +1 -1
- package/dist/durable/Subscription.d.mts +1 -1
- package/dist/durable/SubscriptionInput.d.mts +1 -1
- package/dist/durable/SubscriptionInput.mjs +1 -1
- package/dist/durable/SubscriptionStoreConformance.d.mts +1 -1
- package/dist/durable/SubscriptionTools.d.mts +2 -2
- package/dist/durable/SubscriptionTransition.d.mts +1 -1
- package/dist/durable/Subscriptions.d.mts +5 -5
- package/dist/durable/ThreadArchiveRange.d.mts +1 -1
- package/dist/durable/ThreadContextHistory.d.mts +1 -1
- package/dist/durable/ThreadImport.d.mts +1 -1
- package/dist/durable/ThreadImport.mjs +1 -1
- package/dist/durable/ThreadInvariants.d.mts +3 -3
- package/dist/durable/ThreadInvariants.mjs +2 -2
- package/dist/durable/ThreadProjectionMaintenance.d.mts +1 -1
- package/dist/durable/ThreadReader.d.mts +1 -1
- package/dist/durable/ThreadStore.d.mts +1 -1
- package/dist/durable/ThreadStoreConformance.d.mts +1 -1
- package/dist/durable/ThreadStoreConformance.mjs +1 -1
- package/dist/durable/ThreadTransfer.d.mts +1 -1
- package/dist/durable/ThreadWork.d.mts +1 -1
- package/dist/durable/ThreadWork.mjs +1 -1
- package/dist/durable/WorkerAdmission.d.mts +1 -1
- package/dist/durable/WorkerAdmission.mjs +1 -1
- package/dist/durable/WorkerHost.d.mts +1 -1
- package/dist/engine/AgentRuntime.d.mts +1 -1
- package/dist/engine/AgentRuntime.mjs +1 -1
- package/dist/engine/RunOptions.d.mts +1 -1
- package/dist/engine/RunOptions.mjs.map +1 -1
- package/dist/engine/ThreadHistory.d.mts +1 -1
- package/dist/index.d.mts +13 -13
- package/dist/index.mjs +6 -6
- package/dist/{run-context-reader-kpO9xhP2.d.mts → run-context-reader-CIdG5tdJ.d.mts} +2 -2
- package/package.json +1 -1
- package/src/core/RunEvent.ts +1 -1
- package/src/durable/DurableAgentRuntime.ts +40 -4
- package/src/durable/RunContinuation.ts +10 -0
- package/src/engine/RunOptions.ts +4 -1
- package/src/engine/internal/agent-runtime.ts +43 -6
- package/dist/AgentRuntime-BAExRlgu.mjs.map +0 -1
- package/dist/DurableAgentRuntime-HH2muFrT.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { K as PersistedJson } from "./Records-BTnGRdcf.mjs";
|
|
2
|
-
import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, t as AcceptedEvent } from "./Subscription-
|
|
2
|
+
import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, t as AcceptedEvent } from "./Subscription-Bx0LiX3x.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-
|
|
51
|
+
//# sourceMappingURL=EventSource-gc82d-f6.d.mts.map
|
package/dist/InMemory.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SubagentReservations } from "./capabilities/SubagentReservations.mjs";
|
|
2
2
|
import { t as Store } from "./Thread-DzdJAY4J.mjs";
|
|
3
|
-
import { t as ThreadHistory } from "./ThreadHistory-
|
|
3
|
+
import { t as ThreadHistory } from "./ThreadHistory-ajQhqZDY.mjs";
|
|
4
4
|
import * as Schema$1 from "effect/Schema";
|
|
5
5
|
import * as Effect$1 from "effect/Effect";
|
|
6
6
|
import * as Layer$1 from "effect/Layer";
|
|
@@ -5,9 +5,9 @@ import { r as Update } from "./AgentUpdates-DksV4D0A.mjs";
|
|
|
5
5
|
import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-DvHruCSJ.mjs";
|
|
6
6
|
import { t as AgentPolicy } from "./AgentPolicy-B4lbCU2T.mjs";
|
|
7
7
|
import { b as DefinitionDigests } from "./Records-BTnGRdcf.mjs";
|
|
8
|
-
import { fo as LifecyclePublicationStorage, sn as Settlement } from "./Admin-
|
|
9
|
-
import { a as PreparedInput } from "./Subscription-
|
|
10
|
-
import { t as PreparedInputAdmission } from "./PreparedInputAdmission-
|
|
8
|
+
import { fo as LifecyclePublicationStorage, sn as Settlement } from "./Admin-C4mPa0M2.mjs";
|
|
9
|
+
import { a as PreparedInput } from "./Subscription-Bx0LiX3x.mjs";
|
|
10
|
+
import { t as PreparedInputAdmission } from "./PreparedInputAdmission-CrqdFUd8.mjs";
|
|
11
11
|
import { Context, Crypto, Effect, Layer, Result, Schema } from "effect";
|
|
12
12
|
declare namespace MessageDelivery_d_exports {
|
|
13
13
|
export { MessageDeliveryChange, MessageDeliveryCompletion, MessageDeliveryDriver, MessageDeliveryDriverLimits, MessageDeliveryError, MessageDeliveryFailpoint, MessageDeliveryFailpointError, MessageDeliveryFailure, MessageDeliveryKey, MessageDeliveryPage, MessageDeliveryPageRequest, MessageDeliveryPolicy, MessageDeliveryRecord, MessageDeliveryStore, MessageDeliveryStoreLimits, applyMessageDeliveryChange, defaultMessageDeliveryPolicy, defaultMessageDeliveryStoreLimits, isWorkerUpdateDelivery, messageDeliveryCapacity, messageDeliveryDeadline, messageDeliveryKeyString, messageDeliveryUsesCapacity, peerMessageRetentionDeadline, prepareMessageDelivery, readPending, sameMessageDeliveryIdentity, validateMessageDelivery };
|
|
@@ -950,4 +950,4 @@ declare class MessageDeliveryDriver extends MessageDeliveryDriver_base {
|
|
|
950
950
|
}
|
|
951
951
|
//#endregion
|
|
952
952
|
export { messageDeliveryKeyString as C, readPending as D, prepareMessageDelivery as E, sameMessageDeliveryIdentity as O, messageDeliveryDeadline as S, peerMessageRetentionDeadline as T, applyMessageDeliveryChange as _, MessageDeliveryError as a, isWorkerUpdateDelivery as b, MessageDeliveryFailure as c, MessageDeliveryPageRequest as d, MessageDeliveryPolicy as f, MessageDelivery_d_exports as g, MessageDeliveryStoreLimits as h, MessageDeliveryDriverLimits as i, validateMessageDelivery as k, MessageDeliveryKey as l, MessageDeliveryStore as m, MessageDeliveryCompletion as n, MessageDeliveryFailpoint as o, MessageDeliveryRecord as p, MessageDeliveryDriver as r, MessageDeliveryFailpointError as s, MessageDeliveryChange as t, MessageDeliveryPage as u, defaultMessageDeliveryPolicy as v, messageDeliveryUsesCapacity as w, messageDeliveryCapacity as x, defaultMessageDeliveryStoreLimits as y };
|
|
953
|
-
//# sourceMappingURL=MessageDelivery-
|
|
953
|
+
//# sourceMappingURL=MessageDelivery-DrQKvh93.d.mts.map
|
package/dist/{PreparedInputAdmission-BQ9UCLFS.d.mts → PreparedInputAdmission-CrqdFUd8.d.mts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as Receipt } from "./Receipt-BkM21Qiu.mjs";
|
|
2
2
|
import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-DvHruCSJ.mjs";
|
|
3
|
-
import { kr as SubmissionStatus } from "./Admin-
|
|
3
|
+
import { kr as SubmissionStatus } from "./Admin-C4mPa0M2.mjs";
|
|
4
4
|
import { H as ScheduledInputRefused, V as ScheduledInputFailure, j as ScheduleStorageError } from "./Schedule-CDgTz0vj.mjs";
|
|
5
|
-
import { a as PreparedInput } from "./Subscription-
|
|
5
|
+
import { a as PreparedInput } from "./Subscription-Bx0LiX3x.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-
|
|
42
|
+
//# sourceMappingURL=PreparedInputAdmission-CrqdFUd8.d.mts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { l as SubmissionId, s as RunId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
|
|
2
2
|
import { r as ModelCallUsage } from "./Usage-CzZJ6A2n.mjs";
|
|
3
3
|
import { $ as RecordEnvelope, C as EvidenceReference, d as CanonicalRecordEnvelope, l as CanonicalBatch, ot as RunContextRecorded, p as CanonicalSequence, st as RunContinuation } from "./Records-BTnGRdcf.mjs";
|
|
4
|
-
import { $r as ExecutionCheckpoint, Fr as RunStorageSession, Gt as LedgerError, Ki as ThreadStoreError, Ni as ThreadNotMaterialized, Qr as CommitBatch, Ur as SettlementPublicationResult, Xr as AppendResult, _o as ProgressAppendRecord, cn as SettlementConflict, qi as ThreadStoreFailure, ti as ExecutionUpdate, zi as ThreadReader } from "./Admin-
|
|
5
|
-
import { t as RunContextReader } from "./run-context-reader-
|
|
4
|
+
import { $r as ExecutionCheckpoint, Fr as RunStorageSession, Gt as LedgerError, Ki as ThreadStoreError, Ni as ThreadNotMaterialized, Qr as CommitBatch, Ur as SettlementPublicationResult, Xr as AppendResult, _o as ProgressAppendRecord, cn as SettlementConflict, qi as ThreadStoreFailure, ti as ExecutionUpdate, zi as ThreadReader } from "./Admin-C4mPa0M2.mjs";
|
|
5
|
+
import { t as RunContextReader } from "./run-context-reader-CIdG5tdJ.mjs";
|
|
6
6
|
import { Context, Effect, Option, Stream } from "effect";
|
|
7
7
|
//#region src/durable/internal/evidence.d.ts
|
|
8
8
|
/** References identify immutable facts; schema and owning readers validate their meaning. */
|
|
@@ -115,6 +115,7 @@ declare const verifyRunContinuations: (records: readonly CanonicalRecordEnvelope
|
|
|
115
115
|
declare const makeProgressWriter: (threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">, deploymentId: string & import("effect/Brand").Brand<"@effect-agent/thread/DeploymentId">) => Effect.Effect<{
|
|
116
116
|
commit: (batch: CommitBatch) => Effect.Effect<AppendResult, ThreadStoreFailure, CurrentRunWriter>;
|
|
117
117
|
publish: (batch: CanonicalBatch) => Effect.Effect<SettlementPublicationResult, LedgerError | SettlementConflict | ThreadStoreFailure, CurrentRunSettlement>;
|
|
118
|
+
preflight: (batch: CanonicalBatch) => Effect.Effect<void, ThreadNotMaterialized | ThreadStoreError, CurrentRunWriter>;
|
|
118
119
|
reserve: (runId: RunId, probe: CanonicalBatch, bytes: number) => Effect.Effect<Effect.Effect<void, never, never>, ThreadNotMaterialized | ThreadStoreError, CurrentRunWriter>;
|
|
119
120
|
defer: (batch: CanonicalBatch) => Effect.Effect<Readonly<CanonicalBatch>, ThreadNotMaterialized | ThreadStoreError, CurrentRunWriter>;
|
|
120
121
|
check: (runId: RunId) => Effect.Effect<void, ThreadNotMaterialized | ThreadStoreError, CurrentRunWriter>;
|
|
@@ -125,4 +126,4 @@ declare const makeProgressWriter: (threadId: string & import("effect/Brand").Bra
|
|
|
125
126
|
}, never, ThreadReader>;
|
|
126
127
|
//#endregion
|
|
127
128
|
export { resolveEvidence as S, executionRunIds as _, canonicalRecordBytes as a, terminalUsageCharge as b, prepareProgressAppend as c, resolveExecutionEvidence as d, runEvidence as f, canonicalRunIds as g, verifyRunContinuations as h, RunContinuation_d_exports as i, readContinuation as l, validateSuffix as m, CurrentRunWriter as n, isOperationalRecord as o, validateProgressAppend as p, ProgressAppendReader as r, makeProgressWriter as s, CurrentRunSettlement as t, readRunEvidenceSnapshot as u, isPreContinuationFact as v, reference as x, isWorkHandoff as y };
|
|
128
|
-
//# sourceMappingURL=RunContinuation-
|
|
129
|
+
//# sourceMappingURL=RunContinuation-DMbA81sZ.d.mts.map
|
|
@@ -992,6 +992,10 @@ const makeProgressWriter = Effect.fnUntraced(function* (threadId, deploymentId)
|
|
|
992
992
|
}, (effect) => Effect.flatMap(CurrentRunSettlement, (writer) => writer.withProgress(gate.withPermits(1)(effect))));
|
|
993
993
|
const commit = (batch) => captureFacts(batch).pipe(Effect.flatMap(commitCaptured));
|
|
994
994
|
const publish = (batch) => captureFacts(batch).pipe(Effect.flatMap(publishCaptured));
|
|
995
|
+
const preflight = (batch) => gate.withPermits(1)(Effect.gen(function* () {
|
|
996
|
+
const owned = yield* captureFacts(batch);
|
|
997
|
+
yield* prepare(owned, yield* tail, "preflight");
|
|
998
|
+
}));
|
|
995
999
|
const reserve = (runId, probe, bytes) => gate.withPermits(1)(Effect.gen(function* () {
|
|
996
1000
|
const after = yield* tail;
|
|
997
1001
|
yield* prepare(yield* captureFacts(probe), after);
|
|
@@ -1064,6 +1068,7 @@ const makeProgressWriter = Effect.fnUntraced(function* (threadId, deploymentId)
|
|
|
1064
1068
|
return {
|
|
1065
1069
|
commit,
|
|
1066
1070
|
publish,
|
|
1071
|
+
preflight,
|
|
1067
1072
|
reserve,
|
|
1068
1073
|
defer,
|
|
1069
1074
|
check,
|
|
@@ -1089,4 +1094,4 @@ const makeProgressWriter = Effect.fnUntraced(function* (threadId, deploymentId)
|
|
|
1089
1094
|
//#endregion
|
|
1090
1095
|
export { readRunContext as _, canonicalRecordBytes as a, reference as b, prepareProgressAppend as c, resolveExecutionEvidence as d, runEvidence as f, digestRunHistory as g, verifyRunContinuations as h, RunContinuation_exports as i, readContinuation as l, validateSuffix as m, CurrentRunWriter as n, isOperationalRecord as o, validateProgressAppend as p, ProgressAppendReader as r, makeProgressWriter as s, CurrentRunSettlement as t, readRunEvidenceSnapshot as u, validateContextBoundary as v, resolveEvidence as x, RunContextReader as y };
|
|
1091
1096
|
|
|
1092
|
-
//# sourceMappingURL=RunContinuation-
|
|
1097
|
+
//# sourceMappingURL=RunContinuation-DWiO2K9D.mjs.map
|