@yielded/agent 0.1.0-beta.174 → 0.1.0-beta.176
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-BHmp2V9p.d.mts → Admin-DTDihBra.d.mts} +50 -13
- package/dist/{AgentRuntime-BD3ZHAMq.d.mts → AgentRuntime-CHDyRbSf.d.mts} +3 -3
- package/dist/{AgentRuntime-B6qZlD3f.mjs → AgentRuntime-DaDKMasp.mjs} +123 -114
- package/dist/AgentRuntime-DaDKMasp.mjs.map +1 -0
- package/dist/{Digest-EpeqWEdv.mjs → Digest-C3EODOee.mjs} +2 -2
- package/dist/{Digest-EpeqWEdv.mjs.map → Digest-C3EODOee.mjs.map} +1 -1
- package/dist/{DurableAgentRuntime-CBBjRNJN.mjs → DurableAgentRuntime-BJbuIqQq.mjs} +237 -114
- package/dist/DurableAgentRuntime-BJbuIqQq.mjs.map +1 -0
- package/dist/{EventSource-C9aaJaXT.d.mts → EventSource-Cc58uEso.d.mts} +2 -2
- package/dist/InMemory.d.mts +2 -2
- package/dist/{MessageDelivery-BGDm-c46.d.mts → MessageDelivery-ClHg7c0O.d.mts} +42 -42
- package/dist/{MessagingHost-CRUK4JBi.mjs → MessagingHost-CZCyrnvJ.mjs} +27 -26
- package/dist/MessagingHost-CZCyrnvJ.mjs.map +1 -0
- package/dist/{PreparedInputAdmission-BvDqlgiP.d.mts → PreparedInputAdmission-CjcX1OP0.d.mts} +3 -3
- package/dist/{Records-BiuJDWNe.mjs → Records-DzL4Kbtw.mjs} +2 -2
- package/dist/{Records-BiuJDWNe.mjs.map → Records-DzL4Kbtw.mjs.map} +1 -1
- package/dist/{RunContinuation-4ZATcVLB.mjs → RunContinuation-CWHuciup.mjs} +74 -40
- package/dist/RunContinuation-CWHuciup.mjs.map +1 -0
- package/dist/{RunContinuation-CTJ1jGrO.d.mts → RunContinuation-DSnUTSSb.d.mts} +11 -5
- package/dist/{RunJournal-CNZqA3Ge.mjs → RunJournal-DGblbFas.mjs} +86 -81
- package/dist/RunJournal-DGblbFas.mjs.map +1 -0
- package/dist/{RunStorage-BHjuuERI.mjs → RunStorage-BF2YgWkg.mjs} +44 -33
- package/dist/RunStorage-BF2YgWkg.mjs.map +1 -0
- package/dist/{Scheduling-NG8slKdI.mjs → Scheduling-07_dsGED.mjs} +3 -3
- package/dist/{Scheduling-NG8slKdI.mjs.map → Scheduling-07_dsGED.mjs.map} +1 -1
- package/dist/{Subagent-CTIpnzlB.mjs → Subagent-CexndZSp.mjs} +2 -2
- package/dist/{Subagent-CTIpnzlB.mjs.map → Subagent-CexndZSp.mjs.map} +1 -1
- package/dist/{Subagent-DKhZA72u.d.mts → Subagent-xhN_aD1r.d.mts} +3 -3
- package/dist/{Subscription-BNg9VCRl.d.mts → Subscription-DuC_PcGx.d.mts} +2 -2
- package/dist/{SubscriptionInput-BUoXv-_K.d.mts → SubscriptionInput-B1IeAEDi.d.mts} +2 -2
- package/dist/{Thread-dk-QiNml.d.mts → Thread-DzdJAY4J.d.mts} +4 -3
- package/dist/{ThreadHistory-ByxS8HU1.d.mts → ThreadHistory-KPPBJLJb.d.mts} +12 -2
- package/dist/{ThreadImport-CMgzttvr.d.mts → ThreadImport-D_Biid6w.d.mts} +42 -42
- package/dist/{ThreadImport-CodYoJoa.mjs → ThreadImport-ZgWxf7bB.mjs} +8 -8
- package/dist/{ThreadImport-CodYoJoa.mjs.map → ThreadImport-ZgWxf7bB.mjs.map} +1 -1
- package/dist/{ThreadStore-59uDGXul.mjs → ThreadStore-BC4V-mY-.mjs} +42 -23
- package/dist/ThreadStore-BC4V-mY-.mjs.map +1 -0
- package/dist/{ThreadTransfer-3jigUl3g.mjs → ThreadTransfer-S7FnTRHt.mjs} +4 -4
- package/dist/{ThreadTransfer-3jigUl3g.mjs.map → ThreadTransfer-S7FnTRHt.mjs.map} +1 -1
- package/dist/{WorkerAdmission-DDYJdOsU.mjs → WorkerAdmission-C47Vy_cK.mjs} +5 -5
- package/dist/{WorkerAdmission-DDYJdOsU.mjs.map → WorkerAdmission-C47Vy_cK.mjs.map} +1 -1
- package/dist/{agent-registration-DRbyhAu-.mjs → agent-registration-a6QYaG3h.mjs} +4 -4
- package/dist/{agent-registration-DRbyhAu-.mjs.map → agent-registration-a6QYaG3h.mjs.map} +1 -1
- package/dist/capabilities/Messaging.mjs +1 -1
- package/dist/capabilities/ModelContext.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/Thread.d.mts +2 -2
- package/dist/core/Thread.mjs +5 -3
- package/dist/core/Thread.mjs.map +1 -1
- package/dist/durable/ActivityStore.mjs +1 -1
- package/dist/durable/Admin.d.mts +1 -1
- package/dist/durable/Admin.mjs +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/CommittedActivity.mjs +3 -3
- package/dist/durable/Digest.mjs +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/EventSource.mjs +1 -1
- package/dist/durable/GitHubWorkflowSource.d.mts +3 -3
- package/dist/durable/LifecyclePublication.d.mts +1 -1
- package/dist/durable/LifecyclePublication.mjs +2 -2
- package/dist/durable/MessageDelivery.d.mts +1 -1
- package/dist/durable/MessageDelivery.mjs +2 -2
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +40 -40
- package/dist/durable/MessageDeliveryStoreConformance.mjs +2 -2
- package/dist/durable/PersistentHistory.d.mts +2 -2
- package/dist/durable/PersistentHistory.mjs +4 -4
- package/dist/durable/PreparedInputAdmission.d.mts +1 -1
- package/dist/durable/RecordFormat.mjs +1 -1
- package/dist/durable/Records.mjs +1 -1
- package/dist/durable/Recovery.d.mts +1 -1
- package/dist/durable/Recovery.mjs +1 -1
- package/dist/durable/RunContinuation.d.mts +2 -2
- package/dist/durable/RunContinuation.mjs +3 -3
- package/dist/durable/RunJournal.d.mts +2 -2
- package/dist/durable/RunJournal.mjs +2 -2
- package/dist/durable/RunStorage.d.mts +1 -1
- package/dist/durable/RunStorage.mjs +1 -1
- package/dist/durable/Schedule.mjs +1 -1
- package/dist/durable/ScheduleStoreConformance.mjs +1 -1
- package/dist/durable/ScheduleTransition.mjs +1 -1
- package/dist/durable/Scheduling.d.mts +1 -1
- package/dist/durable/Scheduling.mjs +1 -1
- package/dist/durable/SettlementPublisher.d.mts +1 -1
- package/dist/durable/SettlementPublisher.mjs +3 -3
- package/dist/durable/SqlMemoryStore.mjs +5 -3
- package/dist/durable/SqlMemoryStore.mjs.map +1 -1
- package/dist/durable/SubmissionLedger.d.mts +1 -1
- package/dist/durable/SubmissionLedger.mjs +7 -3
- package/dist/durable/SubmissionLedger.mjs.map +1 -1
- package/dist/durable/SubmissionLedgerConformance.d.mts +1 -1
- package/dist/durable/SubmissionLedgerConformance.mjs +6 -6
- package/dist/durable/SubmissionStatus.d.mts +1 -1
- package/dist/durable/Subscription.d.mts +1 -1
- package/dist/durable/Subscription.mjs +2 -2
- package/dist/durable/SubscriptionInput.d.mts +1 -1
- package/dist/durable/SubscriptionInput.mjs +2 -2
- package/dist/durable/SubscriptionStoreConformance.d.mts +1 -1
- package/dist/durable/SubscriptionStoreConformance.mjs +1 -1
- package/dist/durable/SubscriptionTools.d.mts +2 -2
- package/dist/durable/SubscriptionTransition.d.mts +1 -1
- package/dist/durable/SubscriptionTransition.mjs +1 -1
- package/dist/durable/Subscriptions.d.mts +5 -5
- package/dist/durable/Subscriptions.mjs +2 -2
- package/dist/durable/ThreadArchiveRange.d.mts +1 -1
- package/dist/durable/ThreadArchiveRange.mjs +1 -1
- package/dist/durable/ThreadContextHistory.d.mts +1 -1
- package/dist/durable/ThreadContextHistory.mjs +2 -2
- package/dist/durable/ThreadContextHistoryProjection.mjs +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 +4 -4
- package/dist/durable/ThreadProjection.mjs +1 -1
- package/dist/durable/ThreadProjectionMaintenance.d.mts +1 -1
- package/dist/durable/ThreadReader.d.mts +1 -1
- package/dist/durable/ThreadReader.mjs +1 -1
- package/dist/durable/ThreadStore.d.mts +1 -1
- package/dist/durable/ThreadStore.mjs +2 -2
- package/dist/durable/ThreadStoreConformance.d.mts +1 -1
- package/dist/durable/ThreadStoreConformance.mjs +4 -4
- package/dist/durable/ThreadTransfer.d.mts +1 -1
- package/dist/durable/ThreadTransfer.mjs +1 -1
- package/dist/durable/ThreadWork.d.mts +2 -2
- package/dist/durable/ThreadWork.mjs +12 -6
- package/dist/durable/ThreadWork.mjs.map +1 -1
- package/dist/durable/ToolReconciler.mjs +1 -1
- package/dist/durable/WakeScheduler.mjs +23 -39
- package/dist/durable/WakeScheduler.mjs.map +1 -1
- package/dist/durable/WorkerAdmission.d.mts +68 -68
- 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/MessagingHost.mjs +1 -1
- package/dist/engine/Output.mjs +1 -1
- package/dist/engine/ThreadHistory.d.mts +1 -1
- package/dist/engine/ThreadHistory.mjs +3 -2
- package/dist/engine/ThreadHistory.mjs.map +1 -1
- package/dist/index.d.mts +12 -12
- package/dist/index.mjs +13 -13
- package/dist/{output-contract-CMIhu4Cw.mjs → output-contract-DCnLYCdp.mjs} +12 -15
- package/dist/{output-contract-CMIhu4Cw.mjs.map → output-contract-DCnLYCdp.mjs.map} +1 -1
- package/dist/{run-context-reader-CC7ZD95F.d.mts → run-context-reader-DvTEq2RC.d.mts} +2 -2
- package/package.json +1 -1
- package/src/core/Thread.ts +143 -146
- package/src/durable/DurableAgentRuntime.ts +549 -260
- package/src/durable/RunContinuation.ts +115 -64
- package/src/durable/RunJournal.ts +107 -112
- package/src/durable/RunStorage.ts +90 -61
- package/src/durable/SqlMemoryStore.ts +8 -6
- package/src/durable/SubmissionLedger.ts +15 -0
- package/src/durable/ThreadStore.ts +48 -26
- package/src/durable/ThreadWork.ts +10 -0
- package/src/durable/WakeScheduler.ts +34 -66
- package/src/durable/internal/initial-context.ts +17 -2
- package/src/durable/internal/prompt-history-cache.ts +13 -8
- package/src/durable/internal/usage-totals.ts +28 -31
- package/src/engine/MessagingHost.ts +4 -2
- package/src/engine/ThreadHistory.ts +47 -48
- package/src/engine/internal/agent-runtime.ts +234 -202
- package/src/engine/internal/output-contract.ts +15 -15
- package/src/engine/internal/primitive-delta.ts +2 -3
- package/src/engine/internal/tool-telemetry.ts +3 -5
- package/dist/AgentRuntime-B6qZlD3f.mjs.map +0 -1
- package/dist/DurableAgentRuntime-CBBjRNJN.mjs.map +0 -1
- package/dist/MessagingHost-CRUK4JBi.mjs.map +0 -1
- package/dist/RunContinuation-4ZATcVLB.mjs.map +0 -1
- package/dist/RunJournal-CNZqA3Ge.mjs.map +0 -1
- package/dist/RunStorage-BHjuuERI.mjs.map +0 -1
- package/dist/ThreadStore-59uDGXul.mjs.map +0 -1
|
@@ -4,14 +4,14 @@ import { SubagentBudgetExhausted, SubagentReservations } from "./capabilities/Su
|
|
|
4
4
|
import { a as Receipt, n as JoinedToHost, t as IdempotencyKey } from "./Receipt-BkM21Qiu.mjs";
|
|
5
5
|
import { r as Update } from "./AgentUpdates-DksV4D0A.mjs";
|
|
6
6
|
import { s as RunTotals } from "./Usage-CzZJ6A2n.mjs";
|
|
7
|
-
import { t as ThreadHistory } from "./ThreadHistory-
|
|
7
|
+
import { t as ThreadHistory } from "./ThreadHistory-KPPBJLJb.mjs";
|
|
8
8
|
import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-DvHruCSJ.mjs";
|
|
9
9
|
import { E as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, r as AnyDefinition, y as ModelServices } from "./Agent-B39jRnFv.mjs";
|
|
10
10
|
import { a as WorkerBudgetScope, c as WorkerError, f as WorkerRef, o as WorkerCompletion, p as WorkerReport } from "./Worker-CHRaIsWu.mjs";
|
|
11
11
|
import { V as RunSubagentDigests, x as RunContextPreparation } from "./RunOptions-Be77lKVZ.mjs";
|
|
12
12
|
import { c as MessageRef, l as MessageStatus } from "./Messaging-DF_IWnxV.mjs";
|
|
13
13
|
import { f as WorkerReporting, o as SubagentHost } from "./SubagentHost-D1xBgn9g.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-
|
|
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-CHDyRbSf.mjs";
|
|
15
15
|
import { t as RunEventSink } from "./RunEventSink-shh6Qf9E.mjs";
|
|
16
16
|
import { Brand, Crypto, Duration, Effect, Layer, Schema, Scope, Stream } from "effect";
|
|
17
17
|
import { Tool, Toolkit } from "effect/ai";
|
|
@@ -1698,4 +1698,4 @@ declare function background<const Name extends string, Input extends Schema.Top,
|
|
|
1698
1698
|
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>>;
|
|
1699
1699
|
//#endregion
|
|
1700
1700
|
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 };
|
|
1701
|
-
//# sourceMappingURL=Subagent-
|
|
1701
|
+
//# sourceMappingURL=Subagent-xhN_aD1r.d.mts.map
|
|
@@ -3,7 +3,7 @@ import { a as Receipt, r as Principal } from "./Receipt-BkM21Qiu.mjs";
|
|
|
3
3
|
import { r as Update } from "./AgentUpdates-DksV4D0A.mjs";
|
|
4
4
|
import { t as AgentPolicy } from "./AgentPolicy-B4lbCU2T.mjs";
|
|
5
5
|
import { S as Digest, b as DefinitionDigests } from "./Records-BTnGRdcf.mjs";
|
|
6
|
-
import "./Admin-
|
|
6
|
+
import "./Admin-DTDihBra.mjs";
|
|
7
7
|
import { t as ScheduleAuthorizationDecision } from "./Schedule-CDgTz0vj.mjs";
|
|
8
8
|
import { Context, Effect, Schema } from "effect";
|
|
9
9
|
declare namespace Subscription_d_exports {
|
|
@@ -988,4 +988,4 @@ declare const subscriptionKeyString: (key: SubscriptionKey) => string;
|
|
|
988
988
|
declare const subscriptionDeliveryKeyString: (key: SubscriptionDeliveryKey) => string;
|
|
989
989
|
//#endregion
|
|
990
990
|
export { defaultSubscriptionLimits as A, SubscriptionScanCursors as C, SubscriptionStore as D, SubscriptionSourceError as E, subscriptionKeyString as M, SubscriptionStoreFailure as O, SubscriptionRetentionPolicy as S, SubscriptionSnapshot as T, SubscriptionKey as _, PreparedInput as a, SubscriptionRecord as b, SubscriptionAuthorizer as c, SubscriptionDelivery as d, SubscriptionDeliveryKey as f, SubscriptionFailpointError as g, SubscriptionFailpoint as h, EventSourceVersion as i, subscriptionDeliveryKeyString as j, Subscription_d_exports as k, SubscriptionChange as l, SubscriptionError as m, DeliveryChange as n, SourcePartition as o, SubscriptionDeliverySnapshot as p, EventAcknowledgement as r, SourceRecovery as s, AcceptedEvent as t, SubscriptionConfiguration as u, SubscriptionLimits as v, SubscriptionScope as w, SubscriptionRefusal as x, SubscriptionName as y };
|
|
991
|
-
//# sourceMappingURL=Subscription-
|
|
991
|
+
//# sourceMappingURL=Subscription-DuC_PcGx.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as AgentId } from "./Identifiers-CN2s30fF.mjs";
|
|
2
2
|
import { K as PersistedJson, b as DefinitionDigests } from "./Records-BTnGRdcf.mjs";
|
|
3
|
-
import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, m as SubscriptionError, t as AcceptedEvent, u as SubscriptionConfiguration } from "./Subscription-
|
|
3
|
+
import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, m as SubscriptionError, t as AcceptedEvent, u as SubscriptionConfiguration } from "./Subscription-DuC_PcGx.mjs";
|
|
4
4
|
import { Context, Effect, Schema, Scope } from "effect";
|
|
5
5
|
declare namespace SubscriptionInput_d_exports {
|
|
6
6
|
export { SubscriptionInputBinding, SubscriptionInputBindings, makeSubscriptionInputBinding, resolveSubscriptionInput };
|
|
@@ -38,4 +38,4 @@ declare const makeSubscriptionInputBinding: <Event extends Schema.Top, Parameter
|
|
|
38
38
|
}) => Effect.Effect<SubscriptionInputBinding, never, Exclude<R, Scope.Scope> | Exclude<Continuation["DecodingServices"], Scope.Scope> | Exclude<Continuation["EncodingServices"], Scope.Scope> | Exclude<Event["DecodingServices"], Scope.Scope> | Exclude<Input["EncodingServices"], Scope.Scope> | Exclude<Parameters["DecodingServices"], Scope.Scope>>;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { resolveSubscriptionInput as a, makeSubscriptionInputBinding as i, SubscriptionInputBindings as n, SubscriptionInput_d_exports as r, SubscriptionInputBinding as t };
|
|
41
|
-
//# sourceMappingURL=SubscriptionInput-
|
|
41
|
+
//# sourceMappingURL=SubscriptionInput-B1IeAEDi.d.mts.map
|
|
@@ -6,7 +6,7 @@ import * as Prompt from "effect/ai/Prompt";
|
|
|
6
6
|
import * as Layer$1 from "effect/Layer";
|
|
7
7
|
import { Scope } from "effect";
|
|
8
8
|
declare namespace Thread_d_exports {
|
|
9
|
-
export { Store, Thread, ThreadAppend, ThreadEncodingError, ThreadError, ThreadExport, ThreadHistoryDiverged, ThreadLimitExceeded, ThreadMessage, ThreadNotFound, ThreadOwnershipError, ThreadText, layerMemory, toPrompt };
|
|
9
|
+
export { Store, Thread, ThreadAppend, ThreadEncodingError, ThreadError, ThreadExport, ThreadHistoryDiverged, ThreadLimitExceeded, ThreadMessage, ThreadNotFound, ThreadOwnershipError, ThreadText, layerMemory, makeMemoryStore, toPrompt };
|
|
10
10
|
}
|
|
11
11
|
/** Bound applied to one text projection before it can enter a model context. */
|
|
12
12
|
declare const ThreadText: Schema$1.String;
|
|
@@ -111,7 +111,8 @@ declare const Store_base: Context$1.ServiceClass<Store, "@effect-agent/capabilit
|
|
|
111
111
|
/** Process-local conversation store supplied by layerMemory. */
|
|
112
112
|
declare class Store extends Store_base {}
|
|
113
113
|
/** In-memory storage shared for the consumer's Scope; it does not survive process loss. */
|
|
114
|
+
declare const makeMemoryStore: Effect$1.Effect<StoreService, never, Scope.Scope>;
|
|
114
115
|
declare const layerMemory: Layer$1.Layer<Store, never, never>;
|
|
115
116
|
//#endregion
|
|
116
|
-
export { ThreadError as a, ThreadLimitExceeded as c, ThreadOwnershipError as d, ThreadText as f, toPrompt as h, ThreadEncodingError as i, ThreadMessage as l, layerMemory as m, Thread as n, ThreadExport as o, Thread_d_exports as p, ThreadAppend as r, ThreadHistoryDiverged as s, Store as t, ThreadNotFound as u };
|
|
117
|
-
//# sourceMappingURL=Thread-
|
|
117
|
+
export { ThreadError as a, ThreadLimitExceeded as c, ThreadOwnershipError as d, ThreadText as f, toPrompt as g, makeMemoryStore as h, ThreadEncodingError as i, ThreadMessage as l, layerMemory as m, Thread as n, ThreadExport as o, Thread_d_exports as p, ThreadAppend as r, ThreadHistoryDiverged as s, Store as t, ThreadNotFound as u };
|
|
118
|
+
//# sourceMappingURL=Thread-DzdJAY4J.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as RunId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
|
|
2
|
-
import { t as Store } from "./Thread-
|
|
2
|
+
import { t as Store } from "./Thread-DzdJAY4J.mjs";
|
|
3
3
|
import { l as RunCompleted } from "./RunEvent-C5jVQZ6K.mjs";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
5
5
|
import * as Context from "effect/Context";
|
|
@@ -57,6 +57,16 @@ declare const ThreadHistory_base: Context.ServiceClass<ThreadHistory, "@effect-a
|
|
|
57
57
|
*/
|
|
58
58
|
declare class ThreadHistory extends ThreadHistory_base {
|
|
59
59
|
/** Bind incremental history to the supplied Thread.Store, including scoped ownership views. */
|
|
60
|
+
static readonly makeFromStore: Effect.Effect<{
|
|
61
|
+
readonly retention: "incremental" | "on-success";
|
|
62
|
+
/** Present only for the in-memory adapter; identifies its exact Store ownership view. */
|
|
63
|
+
readonly memoryStore?: Store["Service"];
|
|
64
|
+
readonly open: (request: {
|
|
65
|
+
readonly threadId: ThreadId;
|
|
66
|
+
readonly runId: RunId;
|
|
67
|
+
}) => Effect.Effect<ThreadHistoryRun, ThreadHistoryError>;
|
|
68
|
+
readonly load: (threadId: ThreadId) => Effect.Effect<Prompt.Prompt, ThreadHistoryError>;
|
|
69
|
+
}, never, Store>;
|
|
60
70
|
static readonly layerFromStore: Layer.Layer<ThreadHistory, never, Store>;
|
|
61
71
|
/** Retain history for the application Scope, within message and host capacity. Separate Layer builds own separate stores. */
|
|
62
72
|
static readonly layer: Layer.Layer<Store | ThreadHistory, never, never>;
|
|
@@ -65,4 +75,4 @@ declare class ThreadHistory extends ThreadHistory_base {
|
|
|
65
75
|
declare const layer: Layer.Layer<Store | ThreadHistory, never, never>;
|
|
66
76
|
//#endregion
|
|
67
77
|
export { layer as a, ThreadHistory_d_exports as i, ThreadHistoryError as n, ThreadHistoryRun as r, ThreadHistory as t };
|
|
68
|
-
//# sourceMappingURL=ThreadHistory-
|
|
78
|
+
//# sourceMappingURL=ThreadHistory-KPPBJLJb.d.mts.map
|
|
@@ -5,9 +5,9 @@ import { r as Update } from "./AgentUpdates-DksV4D0A.mjs";
|
|
|
5
5
|
import { r as Diagnostic } from "./FailureDiagnostic-DvHruCSJ.mjs";
|
|
6
6
|
import { t as AgentPolicy } from "./AgentPolicy-B4lbCU2T.mjs";
|
|
7
7
|
import { $ as RecordEnvelope, b as DefinitionDigests, d as CanonicalRecordEnvelope, et as RecordId, l as CanonicalBatch, p as CanonicalSequence } from "./Records-BTnGRdcf.mjs";
|
|
8
|
-
import { $r as ExecutionCheckpoint, Ct as ApprovalDecisionIntent, Gi as ThreadStoreError, Li as ThreadReadRequest, On as UnknownResolutionIntent, Vt as InputAppliedMarker, an as ResolutionSafeToRetry, bi as ThreadCommands, gi as ThreadAdmission, in as ResolutionNeverHappened, lt as AbortIntent, nn as ResolutionAbortSubmission, rn as ResolutionCompletedWithResult, sn as Settlement, wn as SuspensionSnapshot, xi as ThreadExport } from "./Admin-
|
|
9
|
-
import { p as MessageDeliveryRecord } from "./MessageDelivery-
|
|
10
|
-
import { t as RunContextReader } from "./run-context-reader-
|
|
8
|
+
import { $r as ExecutionCheckpoint, Ct as ApprovalDecisionIntent, Gi as ThreadStoreError, Li as ThreadReadRequest, On as UnknownResolutionIntent, Vt as InputAppliedMarker, an as ResolutionSafeToRetry, bi as ThreadCommands, gi as ThreadAdmission, in as ResolutionNeverHappened, lt as AbortIntent, nn as ResolutionAbortSubmission, rn as ResolutionCompletedWithResult, sn as Settlement, wn as SuspensionSnapshot, xi as ThreadExport } from "./Admin-DTDihBra.mjs";
|
|
9
|
+
import { p as MessageDeliveryRecord } from "./MessageDelivery-ClHg7c0O.mjs";
|
|
10
|
+
import { t as RunContextReader } from "./run-context-reader-DvTEq2RC.mjs";
|
|
11
11
|
import { Context, Effect, Layer, Schema, Scope, Stream } from "effect";
|
|
12
12
|
//#region src/durable/internal/thread-import-reader.d.ts
|
|
13
13
|
declare const ThreadImportReader_base: Context.ServiceClass<ThreadImportReader, "@effect-agent/thread/ThreadImportReader", {
|
|
@@ -483,25 +483,6 @@ declare const prepareImportPage: (state: ThreadImportProgress, input: {
|
|
|
483
483
|
readonly reportKind?: "update" | undefined;
|
|
484
484
|
} | undefined;
|
|
485
485
|
readonly messageAdmission?: {
|
|
486
|
-
readonly schemaVersion: 1;
|
|
487
|
-
readonly message: {
|
|
488
|
-
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
489
|
-
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
490
|
-
};
|
|
491
|
-
readonly peerName: string;
|
|
492
|
-
readonly sender: {
|
|
493
|
-
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
494
|
-
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
495
|
-
};
|
|
496
|
-
readonly returnAddress: {
|
|
497
|
-
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
498
|
-
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
499
|
-
};
|
|
500
|
-
readonly inReplyTo?: {
|
|
501
|
-
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
502
|
-
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
503
|
-
} | undefined;
|
|
504
|
-
} | {
|
|
505
486
|
readonly _tag: "WorkerCompletion";
|
|
506
487
|
readonly budgetExhausted: boolean;
|
|
507
488
|
readonly schemaVersion: 1;
|
|
@@ -542,6 +523,25 @@ declare const prepareImportPage: (state: ThreadImportProgress, input: {
|
|
|
542
523
|
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
543
524
|
};
|
|
544
525
|
readonly update: Update;
|
|
526
|
+
} | {
|
|
527
|
+
readonly schemaVersion: 1;
|
|
528
|
+
readonly message: {
|
|
529
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
530
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
531
|
+
};
|
|
532
|
+
readonly peerName: string;
|
|
533
|
+
readonly sender: {
|
|
534
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
535
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
536
|
+
};
|
|
537
|
+
readonly returnAddress: {
|
|
538
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
539
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
540
|
+
};
|
|
541
|
+
readonly inReplyTo?: {
|
|
542
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
543
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
544
|
+
} | undefined;
|
|
545
545
|
} | undefined;
|
|
546
546
|
};
|
|
547
547
|
readonly envelopeDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
|
|
@@ -723,25 +723,6 @@ declare const prepareImportPage: (state: ThreadImportProgress, input: {
|
|
|
723
723
|
readonly reportKind?: "update" | undefined;
|
|
724
724
|
} | undefined;
|
|
725
725
|
readonly messageAdmission?: {
|
|
726
|
-
readonly schemaVersion: 1;
|
|
727
|
-
readonly message: {
|
|
728
|
-
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
729
|
-
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
730
|
-
};
|
|
731
|
-
readonly peerName: string;
|
|
732
|
-
readonly sender: {
|
|
733
|
-
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
734
|
-
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
735
|
-
};
|
|
736
|
-
readonly returnAddress: {
|
|
737
|
-
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
738
|
-
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
739
|
-
};
|
|
740
|
-
readonly inReplyTo?: {
|
|
741
|
-
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
742
|
-
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
743
|
-
} | undefined;
|
|
744
|
-
} | {
|
|
745
726
|
readonly _tag: "WorkerCompletion";
|
|
746
727
|
readonly budgetExhausted: boolean;
|
|
747
728
|
readonly schemaVersion: 1;
|
|
@@ -782,6 +763,25 @@ declare const prepareImportPage: (state: ThreadImportProgress, input: {
|
|
|
782
763
|
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
783
764
|
};
|
|
784
765
|
readonly update: Update;
|
|
766
|
+
} | {
|
|
767
|
+
readonly schemaVersion: 1;
|
|
768
|
+
readonly message: {
|
|
769
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
770
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
771
|
+
};
|
|
772
|
+
readonly peerName: string;
|
|
773
|
+
readonly sender: {
|
|
774
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
775
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
776
|
+
};
|
|
777
|
+
readonly returnAddress: {
|
|
778
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
779
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
780
|
+
};
|
|
781
|
+
readonly inReplyTo?: {
|
|
782
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
783
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
784
|
+
} | undefined;
|
|
785
785
|
} | undefined;
|
|
786
786
|
};
|
|
787
787
|
readonly envelopeDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
|
|
@@ -840,4 +840,4 @@ declare const rebuildClosedSubmission: (admission: ThreadAdmission) => Effect.Ef
|
|
|
840
840
|
declare const reencodeThread: <E, R>(source: Stream.Stream<ThreadExport, E, R>) => Effect.Effect<ThreadImportResult, E | ThreadImportRejected | ThreadStoreError, R | ThreadImport>;
|
|
841
841
|
//#endregion
|
|
842
842
|
export { ThreadDeliveryImportReader as C, verifyImportedReferences as S, reencodeThread as _, ThreadImport as a, validateImportedRunExecution as b, ThreadImportResult as c, finishThreadImport as d, invalidThreadArchive as f, rebuildImportedSubmission as g, rebuildClosedSubmission as h, ThreadArchive as i, ThreadImport_d_exports as l, prepareImportPage as m, PreparedImportPage as n, ThreadImportProgress as o, makeThreadImportProgress as p, RebuiltSubmission as r, ThreadImportRejected as s, PreparedImportBatch as t, captureImportSource as u, validateClosedRun as v, ThreadImportReader as w, verifyImportedInputOrder as x, validateImportedExecution as y };
|
|
843
|
-
//# sourceMappingURL=ThreadImport-
|
|
843
|
+
//# sourceMappingURL=ThreadImport-D_Biid6w.d.mts.map
|
|
@@ -2,19 +2,19 @@ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
|
2
2
|
import { SubmissionId, ThreadId, ToolCallId } from "./core/Identifiers.mjs";
|
|
3
3
|
import { n as utf8ByteLength } from "./utf8-B5pAmhTo.mjs";
|
|
4
4
|
import { f as WorkerRef } from "./Worker-DZjdMjZn.mjs";
|
|
5
|
-
import { l as InputMessage } from "./MessagingHost-
|
|
6
|
-
import { Q as RecordJson, X as RecordEnvelope, c as CanonicalBatch, f as CanonicalSequence, o as CURRENT_RECORD_FORMAT, u as CanonicalRecordEnvelope, vt as SubtreeBudgetReserved } from "./Records-
|
|
7
|
-
import { r as canonicalJson, s as digestJson } from "./Digest-
|
|
5
|
+
import { l as InputMessage } from "./MessagingHost-CZCyrnvJ.mjs";
|
|
6
|
+
import { Q as RecordJson, X as RecordEnvelope, c as CanonicalBatch, f as CanonicalSequence, o as CURRENT_RECORD_FORMAT, u as CanonicalRecordEnvelope, vt as SubtreeBudgetReserved } from "./Records-DzL4Kbtw.mjs";
|
|
7
|
+
import { r as canonicalJson, s as digestJson } from "./Digest-C3EODOee.mjs";
|
|
8
8
|
import { AbortIntent, ApprovalDecisionIntent, ApprovalPendingSuspension, InputAppliedMarker, SubmissionState, SuspensionSnapshot, UnknownResolutionIntent, submissionAbortRecordId, submissionInputRecordId, submissionSettlementRecordId, unknownResolutionKind } from "./durable/SubmissionLedger.mjs";
|
|
9
9
|
import { decodeExportRecord } from "./durable/RecordFormat.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { C as ThreadApprovalFact, E as ThreadExport, G as ThreadResolutionFact, S as ThreadAdmission, _t as isPreContinuationFact, ct as makeTransferFactCheck, dt as transferPageFits, gt as executionRunIds, x as ThreadAbortFact } from "./ThreadStore-
|
|
10
|
+
import { S as runIdForSubmission } from "./RunJournal-DGblbFas.mjs";
|
|
11
|
+
import { C as ThreadApprovalFact, E as ThreadExport, G as ThreadResolutionFact, S as ThreadAdmission, _t as isPreContinuationFact, ct as makeTransferFactCheck, dt as transferPageFits, gt as executionRunIds, x as ThreadAbortFact } from "./ThreadStore-BC4V-mY-.mjs";
|
|
12
12
|
import { MessageDeliveryRecord } from "./durable/MessageDelivery.mjs";
|
|
13
|
-
import { _ as readRunContext, m as validateSuffix, o as isOperationalRecord, v as validateContextBoundary, y as RunContextReader } from "./RunContinuation-
|
|
13
|
+
import { _ as readRunContext, m as validateSuffix, o as isOperationalRecord, v as validateContextBoundary, y as RunContextReader } from "./RunContinuation-CWHuciup.mjs";
|
|
14
14
|
import { workIndexChanges } from "./durable/ThreadWork.mjs";
|
|
15
15
|
import { r as toolOperationStates } from "./tool-operations-BXBmagY1.mjs";
|
|
16
16
|
import { validateCanonicalSettlement, validateJoinedSettlement } from "./durable/SettlementPublisher.mjs";
|
|
17
|
-
import { c as transferDependencies, l as transferSections, s as sameTransferManifest, u as ImportSourcePhase } from "./ThreadTransfer-
|
|
17
|
+
import { c as transferDependencies, l as transferSections, s as sameTransferManifest, u as ImportSourcePhase } from "./ThreadTransfer-S7FnTRHt.mjs";
|
|
18
18
|
import { Context, Effect, Layer, Pull, Schema, Stream } from "effect";
|
|
19
19
|
//#region src/durable/internal/thread-import-reader.ts
|
|
20
20
|
/** Exact indexes for one captured Thread transaction. Run records and commands enforce count and byte bounds. */
|
|
@@ -481,4 +481,4 @@ const reencodeThread = Effect.fnUntraced(function* (source) {
|
|
|
481
481
|
//#endregion
|
|
482
482
|
export { validateImportedRunExecution as _, ThreadImportResult as a, ThreadDeliveryImportReader as b, finishThreadImport as c, prepareImportPage as d, rebuildClosedSubmission as f, validateImportedExecution as g, validateClosedRun as h, ThreadImportRejected as i, invalidThreadArchive as l, reencodeThread as m, ThreadArchive as n, ThreadImport_exports as o, rebuildImportedSubmission as p, ThreadImport as r, captureImportSource as s, RebuiltSubmission as t, makeThreadImportProgress as u, verifyImportedInputOrder as v, ThreadImportReader as x, verifyImportedReferences as y };
|
|
483
483
|
|
|
484
|
-
//# sourceMappingURL=ThreadImport-
|
|
484
|
+
//# sourceMappingURL=ThreadImport-ZgWxf7bB.mjs.map
|