@yielded/agent 0.1.0-beta.177 → 0.1.0-beta.179
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-Bpg24yCK.d.mts → Admin-NvXFPDIM.d.mts} +26 -6
- package/dist/{DurableAgentRuntime-CGW93k81.mjs → DurableAgentRuntime-CWhu1exp.mjs} +49 -69
- package/dist/DurableAgentRuntime-CWhu1exp.mjs.map +1 -0
- package/dist/{EventSource-A6TB7t-f.d.mts → EventSource-DNyaWmyQ.d.mts} +2 -2
- package/dist/{MessageDelivery-BkWrcQUd.d.mts → MessageDelivery-CLzWJImC.d.mts} +42 -42
- package/dist/{PreparedInputAdmission-DKIfqRZT.d.mts → PreparedInputAdmission-BQ9UCLFS.d.mts} +3 -3
- package/dist/{RunContinuation-D42RFqjS.mjs → RunContinuation-BF95Ncv2.mjs} +9 -11
- package/dist/RunContinuation-BF95Ncv2.mjs.map +1 -0
- package/dist/{RunContinuation-Ce2pR8VD.d.mts → RunContinuation-CL0wBsQE.d.mts} +3 -6
- package/dist/{RunStorage-BRGP3Tcu.mjs → RunStorage-DlfvMfHM.mjs} +20 -6
- package/dist/RunStorage-DlfvMfHM.mjs.map +1 -0
- package/dist/{Subscription-D5sOrmlI.d.mts → Subscription-D2yn6Eo3.d.mts} +2 -2
- package/dist/{SubscriptionInput-CxSXZUiC.d.mts → SubscriptionInput-Cog4x7Rd.d.mts} +2 -2
- package/dist/{ThreadImport-DUcPj5jC.mjs → ThreadImport-BoTfjjrz.mjs} +4 -4
- package/dist/{ThreadImport-DUcPj5jC.mjs.map → ThreadImport-BoTfjjrz.mjs.map} +1 -1
- package/dist/{ThreadImport-C6IiPJMW.d.mts → ThreadImport-em89zmM-.d.mts} +4 -4
- package/dist/{ThreadStore-Cn6FDWX9.mjs → ThreadStore-D2rqtt7k.mjs} +13 -8
- package/dist/ThreadStore-D2rqtt7k.mjs.map +1 -0
- package/dist/{ThreadTransfer-BWnAHIge.mjs → ThreadTransfer-BFolkpEp.mjs} +2 -2
- package/dist/{ThreadTransfer-BWnAHIge.mjs.map → ThreadTransfer-BFolkpEp.mjs.map} +1 -1
- package/dist/{WorkerAdmission-cfiK9aRi.mjs → WorkerAdmission-CtX1HRkm.mjs} +2 -2
- package/dist/{WorkerAdmission-cfiK9aRi.mjs.map → WorkerAdmission-CtX1HRkm.mjs.map} +1 -1
- package/dist/capabilities/BrowserUse.d.mts +36 -18
- package/dist/capabilities/BrowserUse.mjs +43 -11
- package/dist/capabilities/BrowserUse.mjs.map +1 -1
- package/dist/capabilities/CodeMode.mjs +1 -0
- package/dist/capabilities/CodeMode.mjs.map +1 -1
- package/dist/durable/Admin.d.mts +1 -1
- package/dist/durable/AgentRegistration.d.mts +1 -1
- package/dist/durable/Certification.d.mts +1 -1
- package/dist/durable/CommittedActivity.d.mts +1 -1
- package/dist/durable/CommittedActivity.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/GitHubWorkflowSource.d.mts +3 -3
- package/dist/durable/LifecyclePublication.d.mts +1 -1
- package/dist/durable/LifecyclePublication.mjs +1 -1
- package/dist/durable/MessageDelivery.d.mts +1 -1
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +2 -2
- package/dist/durable/PersistentHistory.d.mts +1 -1
- package/dist/durable/PersistentHistory.mjs +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 +2 -2
- package/dist/durable/RunJournal.d.mts +1 -1
- package/dist/durable/RunStorage.d.mts +1 -1
- package/dist/durable/RunStorage.mjs +1 -1
- package/dist/durable/Scheduling.d.mts +1 -1
- package/dist/durable/SettlementPublisher.d.mts +1 -1
- package/dist/durable/SettlementPublisher.mjs +1 -1
- package/dist/durable/SubmissionLedger.d.mts +1 -1
- package/dist/durable/SubmissionLedgerConformance.d.mts +1 -1
- package/dist/durable/SubmissionLedgerConformance.mjs +2 -2
- 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/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/ThreadContextHistory.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 +3 -3
- 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 +2 -2
- package/dist/durable/ThreadStore.mjs +2 -2
- package/dist/durable/ThreadStoreConformance.d.mts +2 -1
- package/dist/durable/ThreadStoreConformance.mjs +2 -2
- package/dist/durable/ThreadTransfer.d.mts +1 -1
- package/dist/durable/ThreadTransfer.mjs +1 -1
- package/dist/durable/ThreadWork.d.mts +1 -1
- package/dist/durable/ThreadWork.mjs +2 -2
- 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/index.d.mts +8 -8
- package/dist/index.mjs +6 -6
- package/dist/{run-context-reader-BtBPX_nC.d.mts → run-context-reader-kpO9xhP2.d.mts} +2 -2
- package/dist/sandbox/CodeExecutor.d.mts +3 -1
- package/dist/sandbox/CodeExecutor.mjs +3 -1
- package/dist/sandbox/CodeExecutor.mjs.map +1 -1
- package/package.json +1 -1
- package/src/capabilities/BrowserUse.ts +53 -15
- package/src/capabilities/CodeMode.ts +1 -0
- package/src/durable/DurableAgentRuntime.ts +78 -143
- package/src/durable/RunContinuation.ts +44 -32
- package/src/durable/RunStorage.ts +56 -15
- package/src/durable/ThreadStore.ts +11 -0
- package/src/durable/internal/prompt-history-cache.ts +19 -3
- package/src/durable/internal/record-encoding.ts +8 -7
- package/src/sandbox/CodeExecutor.ts +3 -1
- package/dist/DurableAgentRuntime-CGW93k81.mjs.map +0 -1
- package/dist/RunContinuation-D42RFqjS.mjs.map +0 -1
- package/dist/RunStorage-BRGP3Tcu.mjs.map +0 -1
- package/dist/ThreadStore-Cn6FDWX9.mjs.map +0 -1
|
@@ -2,8 +2,8 @@ import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
|
2
2
|
import { ThreadHistory, ThreadHistoryError } from "../engine/ThreadHistory.mjs";
|
|
3
3
|
import { L as ModelCompleted, U as PersistedJson, W as ProducerId, X as RecordEnvelope, Z as RecordId, c as CanonicalBatch, i as BatchId, kt as UserInputRecorded, nt as RunCompleted, y as DeploymentId } from "../Records-CZRedCE7.mjs";
|
|
4
4
|
import { v as promptFromCanonicalRecords } from "../RunJournal-oJLo-pjS.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { s as StorageOwner } from "../RunStorage-
|
|
5
|
+
import { I as ThreadIdentityRequest, L as ThreadMaterialization, Y as ThreadStore, n as AppendRequest, x as SelectedThreadRead } from "../ThreadStore-D2rqtt7k.mjs";
|
|
6
|
+
import { s as StorageOwner } from "../RunStorage-DlfvMfHM.mjs";
|
|
7
7
|
import { DateTime, Effect, Layer, Schema, Stream } from "effect";
|
|
8
8
|
import { Prompt } from "effect/ai";
|
|
9
9
|
//#region src/durable/PersistentHistory.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as admitPreparedInput, t as PreparedInputAdmission } from "../PreparedInputAdmission-
|
|
1
|
+
import { r as admitPreparedInput, t as PreparedInputAdmission } from "../PreparedInputAdmission-BQ9UCLFS.mjs";
|
|
2
2
|
export { PreparedInputAdmission, admitPreparedInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ResumeFromTurnBoundary, A as AwaitHostSettlement, B as NoAction, D as AwaitApprovalDecision, E as ApplyUnknownResolutions, F as DeclaredPendingBatchEvidence, G as RecoveryDecision, H as OpenToolCallEvidence, I as DelegationAdmissionEvidence, J as ReleaseOrphanChildReservation, K as RecoveryEvidence, L as EnsureWaitingForChild, M as AwaitUnknownResolution, N as CompleteChildAdmission, O as AwaitChildAdmissionResolution, P as CompleteMaterialization, Q as RepairSubagentStartLink, R as FinalizeLedgerFromHistory, T as ApplyJoinAccounting, U as PendingApprovalEvidence, V as OpenDelegationCallEvidence, W as PropagateChildAbort, X as RepairJoinMarker, Y as RepairInputMarker, Z as RepairReadiness, at as SettleJoinedWithHost, et as ResumePendingToolBatch, it as SettleAborted, j as AwaitParentEstablishment, k as AwaitChildSettlement, nt as ResumeWaitingParent, ot as classifyRecovery, rt as RevertJoining, st as pendingApprovalForRecovery, tt as ResumeSuspended, w as ApplyInput, z as MarkUnknown } from "../Admin-
|
|
1
|
+
import { $ as ResumeFromTurnBoundary, A as AwaitHostSettlement, B as NoAction, D as AwaitApprovalDecision, E as ApplyUnknownResolutions, F as DeclaredPendingBatchEvidence, G as RecoveryDecision, H as OpenToolCallEvidence, I as DelegationAdmissionEvidence, J as ReleaseOrphanChildReservation, K as RecoveryEvidence, L as EnsureWaitingForChild, M as AwaitUnknownResolution, N as CompleteChildAdmission, O as AwaitChildAdmissionResolution, P as CompleteMaterialization, Q as RepairSubagentStartLink, R as FinalizeLedgerFromHistory, T as ApplyJoinAccounting, U as PendingApprovalEvidence, V as OpenDelegationCallEvidence, W as PropagateChildAbort, X as RepairJoinMarker, Y as RepairInputMarker, Z as RepairReadiness, at as SettleJoinedWithHost, et as ResumePendingToolBatch, it as SettleAborted, j as AwaitParentEstablishment, k as AwaitChildSettlement, nt as ResumeWaitingParent, ot as classifyRecovery, rt as RevertJoining, st as pendingApprovalForRecovery, tt as ResumeSuspended, w as ApplyInput, z as MarkUnknown } from "../Admin-NvXFPDIM.mjs";
|
|
2
2
|
export { ApplyInput, ApplyJoinAccounting, ApplyUnknownResolutions, AwaitApprovalDecision, AwaitChildAdmissionResolution, AwaitChildSettlement, AwaitHostSettlement, AwaitParentEstablishment, AwaitUnknownResolution, CompleteChildAdmission, CompleteMaterialization, DeclaredPendingBatchEvidence, DelegationAdmissionEvidence, EnsureWaitingForChild, FinalizeLedgerFromHistory, MarkUnknown, NoAction, OpenDelegationCallEvidence, OpenToolCallEvidence, PendingApprovalEvidence, PropagateChildAbort, RecoveryDecision, RecoveryEvidence, ReleaseOrphanChildReservation, RepairInputMarker, RepairJoinMarker, RepairReadiness, RepairSubagentStartLink, ResumeFromTurnBoundary, ResumePendingToolBatch, ResumeSuspended, ResumeWaitingParent, RevertJoining, SettleAborted, SettleJoinedWithHost, classifyRecovery, pendingApprovalForRecovery };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { C as EvidenceReference, ot as RunContextRecorded, st as RunContinuation } from "../Records-BTnGRdcf.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { S as resolveEvidence, _ as executionRunIds, a as canonicalRecordBytes, b as terminalUsageCharge, c as prepareProgressAppend, d as resolveExecutionEvidence, f as runEvidence, g as canonicalRunIds, h as verifyRunContinuations, l as readContinuation, m as validateSuffix, n as CurrentRunWriter, o as isOperationalRecord, p as validateProgressAppend, r as ProgressAppendReader, s as makeProgressWriter, t as CurrentRunSettlement, u as readRunEvidenceSnapshot, v as isPreContinuationFact, x as reference, y as isWorkHandoff } from "../RunContinuation-
|
|
2
|
+
import { _o as ProgressAppendRecord } from "../Admin-NvXFPDIM.mjs";
|
|
3
|
+
import { S as resolveEvidence, _ as executionRunIds, a as canonicalRecordBytes, b as terminalUsageCharge, c as prepareProgressAppend, d as resolveExecutionEvidence, f as runEvidence, g as canonicalRunIds, h as verifyRunContinuations, l as readContinuation, m as validateSuffix, n as CurrentRunWriter, o as isOperationalRecord, p as validateProgressAppend, r as ProgressAppendReader, s as makeProgressWriter, t as CurrentRunSettlement, u as readRunEvidenceSnapshot, v as isPreContinuationFact, x as reference, y as isWorkHandoff } from "../RunContinuation-CL0wBsQE.mjs";
|
|
4
4
|
export { CurrentRunSettlement, CurrentRunWriter, EvidenceReference, ProgressAppendReader, type ProgressAppendRecord, RunContextRecorded, RunContinuation, canonicalRecordBytes, canonicalRunIds, executionRunIds, isOperationalRecord, isPreContinuationFact, isWorkHandoff, makeProgressWriter, prepareProgressAppend, readContinuation, readRunEvidenceSnapshot, reference, resolveEvidence, resolveExecutionEvidence, runEvidence, terminalUsageCharge, validateProgressAppend, validateSuffix, verifyRunContinuations };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { it as RunContinuation, rt as RunContextRecorded, x as EvidenceReference } from "../Records-CZRedCE7.mjs";
|
|
2
|
-
import { _t as
|
|
3
|
-
import { a as canonicalRecordBytes, b as reference, c as prepareProgressAppend, d as resolveExecutionEvidence, f as runEvidence, h as verifyRunContinuations, l as readContinuation, m as validateSuffix, n as CurrentRunWriter, o as isOperationalRecord, p as validateProgressAppend, r as ProgressAppendReader, s as makeProgressWriter, t as CurrentRunSettlement, u as readRunEvidenceSnapshot, x as resolveEvidence } from "../RunContinuation-
|
|
2
|
+
import { _t as executionRunIds, bt as isWorkHandoff, gt as canonicalRunIds, vt as isPreContinuationFact, xt as terminalUsageCharge } from "../ThreadStore-D2rqtt7k.mjs";
|
|
3
|
+
import { a as canonicalRecordBytes, b as reference, c as prepareProgressAppend, d as resolveExecutionEvidence, f as runEvidence, h as verifyRunContinuations, l as readContinuation, m as validateSuffix, n as CurrentRunWriter, o as isOperationalRecord, p as validateProgressAppend, r as ProgressAppendReader, s as makeProgressWriter, t as CurrentRunSettlement, u as readRunEvidenceSnapshot, x as resolveEvidence } from "../RunContinuation-BF95Ncv2.mjs";
|
|
4
4
|
export { CurrentRunSettlement, CurrentRunWriter, EvidenceReference, ProgressAppendReader, RunContextRecorded, RunContinuation, canonicalRecordBytes, canonicalRunIds, executionRunIds, isOperationalRecord, isPreContinuationFact, isWorkHandoff, makeProgressWriter, prepareProgressAppend, readContinuation, readRunEvidenceSnapshot, reference, resolveEvidence, resolveExecutionEvidence, runEvidence, terminalUsageCharge, validateProgressAppend, validateSuffix, verifyRunContinuations };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $o as
|
|
1
|
+
import { $o as subagentJoinedRecordId, Ao as agentUpdateRecordId, Bo as modelResponseInterruptedRecordId, Co as JournalBoundary, Cs as workerOriginRecordId, Do as RunJournalUsage, Eo as RunJournalProjection, Es as toolCallSettledRecordId, Fo as compactionRecordId, Go as promptFromCanonicalRecords, Ho as peerMessageRecordId, Io as firstWorkerInputRecordId, Jo as runDurationRecordId, Ko as runCompletedRecordId, Lo as initialRunJournal, Mo as childIdempotencyKeyFor, No as childThreadIdFor, Po as compactionBatchId, Qo as subagentJoinBatchId, Ro as markUnknownBatchId, Ss as workerInputRecordId, To as RunJournalError, Uo as projectRunJournal, Vo as modelResponseRecordId, Wo as projectRunJournalStream, Xo as runStartedBatchId, Yo as runIdForSubmission, Zo as runStartedRecordId, _s as turnIdForRun, as as subagentStartedRecordId, bs as turnResultsBatch, cs as toolCallResolutionBatchId, ds as toolCallUnknownRecordId, es as subagentLineageBatchId, fs as toolStepSettledBatchId, gs as turnCanonicalBatch, hs as turnBatchId, is as subagentStartedBatchId, jo as approvalDecisionBatchId, ko as TurnCommitInput, ls as toolCallResolvedRecordId, ms as turnApprovalsBatchId, ns as subagentRequestedBatchId, os as toolApprovalDecisionRecordId, ps as toolStepSettledRecordId, qo as runDurationBatchId, rs as subagentRequestedRecordId, ss as toolApprovalRequestRecordId, ts as subagentLineageRecordId, us as toolCallResultBatchId, vs as turnResponseBatch, wo as RunJournalContext, ws as workerReportRecordId, xs as turnResultsBatchId, ys as turnResponseBatchId, zo as modelResponseInterruptedBatchId } from "../Admin-NvXFPDIM.mjs";
|
|
2
2
|
export { JournalBoundary, RunJournalContext, RunJournalError, RunJournalProjection, RunJournalUsage, TurnCommitInput, agentUpdateRecordId, approvalDecisionBatchId, childIdempotencyKeyFor, childThreadIdFor, compactionBatchId, compactionRecordId, firstWorkerInputRecordId, initialRunJournal, markUnknownBatchId, modelResponseInterruptedBatchId, modelResponseInterruptedRecordId, modelResponseRecordId, peerMessageRecordId, projectRunJournal, projectRunJournalStream, promptFromCanonicalRecords, runCompletedRecordId, runDurationBatchId, runDurationRecordId, runIdForSubmission, runStartedBatchId, runStartedRecordId, subagentJoinBatchId, subagentJoinedRecordId, subagentLineageBatchId, subagentLineageRecordId, subagentRequestedBatchId, subagentRequestedRecordId, subagentStartedBatchId, subagentStartedRecordId, toolApprovalDecisionRecordId, toolApprovalRequestRecordId, toolCallResolutionBatchId, toolCallResolvedRecordId, toolCallResultBatchId, toolCallSettledRecordId, toolCallUnknownRecordId, toolStepSettledBatchId, toolStepSettledRecordId, turnApprovalsBatchId, turnBatchId, turnCanonicalBatch, turnIdForRun, turnResponseBatch, turnResponseBatchId, turnResultsBatch, turnResultsBatchId, workerInputRecordId, workerOriginRecordId, workerReportRecordId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Fr as RunStorageSession, Ir as RunWriter, Lr as layer, Mr as RunChildBudgetReservation, Nr as RunOwnership, Pr as RunStorage, Rr as make,
|
|
1
|
+
import { Fr as RunStorageSession, Ir as RunWriter, Lr as layer, Mr as RunChildBudgetReservation, Nr as RunOwnership, Pr as RunStorage, Rr as make, So as makeStorageOwner, bo as StorageOwner, jr as RunChildAttachment, vo as MutationGate, xo as StorageOwnerService, yo as OwnerGeneration, zr as makeRunWriter } from "../Admin-NvXFPDIM.mjs";
|
|
2
2
|
export { type MutationGate, type OwnerGeneration, RunChildAttachment, RunChildBudgetReservation, RunOwnership, RunStorage, RunStorageSession, RunWriter, StorageOwner, type StorageOwnerService, layer, make, makeRunWriter, makeStorageOwner };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as make, c as makeStorageOwner, i as layer, n as RunChildBudgetReservation, o as makeRunWriter, r as RunStorage, s as StorageOwner, t as RunChildAttachment } from "../RunStorage-
|
|
1
|
+
import { a as make, c as makeStorageOwner, i as layer, n as RunChildBudgetReservation, o as makeRunWriter, r as RunStorage, s as StorageOwner, t as RunChildAttachment } from "../RunStorage-DlfvMfHM.mjs";
|
|
2
2
|
export { RunChildAttachment, RunChildBudgetReservation, RunStorage, StorageOwner, layer, make, makeRunWriter, makeStorageOwner };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as Principal } from "../Receipt-BkM21Qiu.mjs";
|
|
2
2
|
import { b as DefinitionDigests } from "../Records-BTnGRdcf.mjs";
|
|
3
|
-
import { cr as DurableSubmitAgent, pt as AdmissionFence } from "../Admin-
|
|
3
|
+
import { cr as DurableSubmitAgent, pt as AdmissionFence } from "../Admin-NvXFPDIM.mjs";
|
|
4
4
|
import { A as ScheduleSnapshotPage, B as ScheduledInputAdmission, C as ScheduleRecord, D as ScheduleScope, F as ScheduleTimingRequest, I as ScheduleValidationError, L as ScheduleWake, M as ScheduleStore, N as ScheduleStoreFailure, W as SchedulingLimits, c as ScheduleDestination, f as ScheduleId, j as ScheduleStorageError, k as ScheduleSnapshot, m as ScheduleKey, n as ScheduleAuthorizationError, r as ScheduleAuthorizer, y as ScheduleOwner } from "../Schedule-CDgTz0vj.mjs";
|
|
5
5
|
import { Context, Crypto, Effect, Layer, Schema } from "effect";
|
|
6
6
|
declare namespace Scheduling_d_exports {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Br as SettlementPublication, Gr as validateCanonicalSettlement, Hr as SettlementPublicationFailure, Kr as validateJoinedSettlement, Ur as SettlementPublicationResult, Vr as SettlementPublicationAuthority, Wr as SettlementPublisher, qr as validatePublication } from "../Admin-
|
|
1
|
+
import { Br as SettlementPublication, Gr as validateCanonicalSettlement, Hr as SettlementPublicationFailure, Kr as validateJoinedSettlement, Ur as SettlementPublicationResult, Vr as SettlementPublicationAuthority, Wr as SettlementPublisher, qr as validatePublication } from "../Admin-NvXFPDIM.mjs";
|
|
2
2
|
export { SettlementPublication, SettlementPublicationAuthority, SettlementPublicationFailure, SettlementPublicationResult, SettlementPublisher, validateCanonicalSettlement, validateJoinedSettlement, validatePublication };
|
|
@@ -2,7 +2,7 @@ import { SubmissionId } from "../core/Identifiers.mjs";
|
|
|
2
2
|
import { X as RecordEnvelope, f as CanonicalSequence, gt as SubmissionSettled } from "../Records-CZRedCE7.mjs";
|
|
3
3
|
import { LedgerError, submissionSettlementBatchId, submissionSettlementId, submissionSettlementRecordId } from "./SubmissionLedger.mjs";
|
|
4
4
|
import { S as runIdForSubmission } from "../RunJournal-oJLo-pjS.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { g as PreparedAppend, n as AppendRequest } from "../ThreadStore-D2rqtt7k.mjs";
|
|
6
6
|
import { Context, Effect, Schema } from "effect";
|
|
7
7
|
//#region src/durable/SettlementPublisher.ts
|
|
8
8
|
/** Authority rechecked atomically on every publication attempt, including canonical replay. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as QueueSequence, n as JoinedToHost, r as Principal, t as IdempotencyKey } from "../Receipt-BkM21Qiu.mjs";
|
|
2
|
-
import { $t as RecoverySnapshotRequest, An as WaitingChild, At as ChildReservationConflict, Bn as submissionSettlementBatchId, Bt as FundingOwnerRequest, Cn as SuspensionReason, Ct as ApprovalDecisionIntent, Dn as UnknownResolutionConflict, Dt as ChildAttachmentSnapshot, En as UnknownResolutionCommand, Et as BeginChildBudgetReleaseRequest, Fn as settlementFailureFromRecord, Ft as Claim, Gn as workerTerminalFromRecord, Gt as LedgerError, Hn as submissionSettlementRecordId, Ht as JoinSnapshot, In as submissionAbortBatchId, It as ClaimHandoff, Jt as MarkReadyRequest, Kt as MarkInputAppliedRequest, Ln as submissionAbortRecordId, Lt as ClaimJoiningRequest, Mn as WorkerLedgerState, Mt as ChildReservationStatus, Nn as WorkerStopCommand, Nt as ChildSettledNotification, On as UnknownResolutionIntent, Ot as ChildBudgetReservationRequest, Pn as approvalDecisionsCover, Pt as ChildSettledOutcome, Qt as RecoverySnapshot, Rn as submissionInputBatchId, Rt as ClaimRequest, Sn as SuspensionOutcome, St as ApprovalDecisionCommand, Tn as UnknownResolution, Tt as AttachChildToReservationRequest, Un as unknownResolutionKind, Ut as JoiningClaim, Vn as submissionSettlementId, Vt as InputAppliedMarker, Wn as unknownResolutionMatchesResult, Wt as LedgerCapabilities, Xt as OwnershipLost, Yt as MarkUnknownRequest, Zt as ParentLinkage, _n as SubmissionScheduling, _t as AdmissionPolicyError, an as ResolutionSafeToRetry, bn as SubmissionWorkItem, bt as AdmissionResult, cn as SettlementConflict, ct as AbortCommand, dn as SubmissionLedger, dt as AdmissionAdmitted, en as ReleaseChildBudgetRequest, fn as SubmissionLedgerFailure, ft as AdmissionConflict, gn as SubmissionLookupByKey, gt as AdmissionNotAdmitted, hn as SubmissionLookupById, ht as AdmissionIndeterminate, in as ResolutionNeverHappened, jn as WaitingForChildSuspension, jt as ChildReservationId, kn as UnknownResolutionKind, kt as ChildBudgetReservationSnapshot, ln as SettlementFinalization, lt as AbortIntent, mn as SubmissionLookup, mt as AdmissionGroup, nn as ResolutionAbortSubmission, on as RevertJoiningRequest, pt as AdmissionFence, qt as MarkJoinedRequest, rn as ResolutionCompletedWithResult, sn as Settlement, tn as ReservedChildBudget, un as SubmissionAdmissionFence, ut as AbortIntentRequest, vn as SubmissionSnapshot, vt as AdmissionRequest, wn as SuspensionSnapshot, wt as ApprovalPendingSuspension, xn as SuspendRequest, xt as ApprovalConflict, yn as SubmissionState, yt as AdmissionResolution, zn as submissionInputRecordId, zt as FundingOwner } from "../Admin-
|
|
2
|
+
import { $t as RecoverySnapshotRequest, An as WaitingChild, At as ChildReservationConflict, Bn as submissionSettlementBatchId, Bt as FundingOwnerRequest, Cn as SuspensionReason, Ct as ApprovalDecisionIntent, Dn as UnknownResolutionConflict, Dt as ChildAttachmentSnapshot, En as UnknownResolutionCommand, Et as BeginChildBudgetReleaseRequest, Fn as settlementFailureFromRecord, Ft as Claim, Gn as workerTerminalFromRecord, Gt as LedgerError, Hn as submissionSettlementRecordId, Ht as JoinSnapshot, In as submissionAbortBatchId, It as ClaimHandoff, Jt as MarkReadyRequest, Kt as MarkInputAppliedRequest, Ln as submissionAbortRecordId, Lt as ClaimJoiningRequest, Mn as WorkerLedgerState, Mt as ChildReservationStatus, Nn as WorkerStopCommand, Nt as ChildSettledNotification, On as UnknownResolutionIntent, Ot as ChildBudgetReservationRequest, Pn as approvalDecisionsCover, Pt as ChildSettledOutcome, Qt as RecoverySnapshot, Rn as submissionInputBatchId, Rt as ClaimRequest, Sn as SuspensionOutcome, St as ApprovalDecisionCommand, Tn as UnknownResolution, Tt as AttachChildToReservationRequest, Un as unknownResolutionKind, Ut as JoiningClaim, Vn as submissionSettlementId, Vt as InputAppliedMarker, Wn as unknownResolutionMatchesResult, Wt as LedgerCapabilities, Xt as OwnershipLost, Yt as MarkUnknownRequest, Zt as ParentLinkage, _n as SubmissionScheduling, _t as AdmissionPolicyError, an as ResolutionSafeToRetry, bn as SubmissionWorkItem, bt as AdmissionResult, cn as SettlementConflict, ct as AbortCommand, dn as SubmissionLedger, dt as AdmissionAdmitted, en as ReleaseChildBudgetRequest, fn as SubmissionLedgerFailure, ft as AdmissionConflict, gn as SubmissionLookupByKey, gt as AdmissionNotAdmitted, hn as SubmissionLookupById, ht as AdmissionIndeterminate, in as ResolutionNeverHappened, jn as WaitingForChildSuspension, jt as ChildReservationId, kn as UnknownResolutionKind, kt as ChildBudgetReservationSnapshot, ln as SettlementFinalization, lt as AbortIntent, mn as SubmissionLookup, mt as AdmissionGroup, nn as ResolutionAbortSubmission, on as RevertJoiningRequest, pt as AdmissionFence, qt as MarkJoinedRequest, rn as ResolutionCompletedWithResult, sn as Settlement, tn as ReservedChildBudget, un as SubmissionAdmissionFence, ut as AbortIntentRequest, vn as SubmissionSnapshot, vt as AdmissionRequest, wn as SuspensionSnapshot, wt as ApprovalPendingSuspension, xn as SuspendRequest, xt as ApprovalConflict, yn as SubmissionState, yt as AdmissionResolution, zn as submissionInputRecordId, zt as FundingOwner } from "../Admin-NvXFPDIM.mjs";
|
|
3
3
|
export { AbortCommand, AbortIntent, AbortIntentRequest, AdmissionAdmitted, AdmissionConflict, AdmissionFence, AdmissionGroup, AdmissionIndeterminate, AdmissionNotAdmitted, AdmissionPolicyError, AdmissionRequest, AdmissionResolution, AdmissionResult, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, ApprovalPendingSuspension, AttachChildToReservationRequest, BeginChildBudgetReleaseRequest, ChildAttachmentSnapshot, ChildBudgetReservationRequest, ChildBudgetReservationSnapshot, ChildReservationConflict, ChildReservationId, ChildReservationStatus, ChildSettledNotification, ChildSettledOutcome, Claim, ClaimHandoff, ClaimJoiningRequest, ClaimRequest, FundingOwner, FundingOwnerRequest, IdempotencyKey, InputAppliedMarker, JoinSnapshot, JoinedToHost, JoiningClaim, LedgerCapabilities, LedgerError, MarkInputAppliedRequest, MarkJoinedRequest, MarkReadyRequest, MarkUnknownRequest, OwnershipLost, ParentLinkage, Principal, QueueSequence, RecoverySnapshot, RecoverySnapshotRequest, ReleaseChildBudgetRequest, ReservedChildBudget, ResolutionAbortSubmission, ResolutionCompletedWithResult, ResolutionNeverHappened, ResolutionSafeToRetry, RevertJoiningRequest, Settlement, SettlementConflict, SettlementFinalization, SubmissionAdmissionFence, SubmissionLedger, SubmissionLedgerFailure, SubmissionLookup, SubmissionLookupById, SubmissionLookupByKey, SubmissionScheduling, SubmissionSnapshot, SubmissionState, SubmissionWorkItem, SuspendRequest, SuspensionOutcome, SuspensionReason, SuspensionSnapshot, UnknownResolution, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent, UnknownResolutionKind, WaitingChild, WaitingForChildSuspension, WorkerLedgerState, WorkerStopCommand, approvalDecisionsCover, settlementFailureFromRecord, submissionAbortBatchId, submissionAbortRecordId, submissionInputBatchId, submissionInputRecordId, submissionSettlementBatchId, submissionSettlementId, submissionSettlementRecordId, unknownResolutionKind, unknownResolutionMatchesResult, workerTerminalFromRecord };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DigestError } from "../Digest-DjUgS5PG.mjs";
|
|
2
|
-
import { Hr as SettlementPublicationFailure,
|
|
2
|
+
import { Hr as SettlementPublicationFailure, Wi as ThreadStore, Wr as SettlementPublisher, bo as StorageOwner, dn as SubmissionLedger, fn as SubmissionLedgerFailure } from "../Admin-NvXFPDIM.mjs";
|
|
3
3
|
import { Crypto, Effect, Schema } from "effect";
|
|
4
4
|
//#region src/durable/SubmissionLedgerConformance.d.ts
|
|
5
5
|
declare const SubmissionLedgerConformanceViolation_base: Schema.Class<SubmissionLedgerConformanceViolation, Schema.TaggedStruct<"SubmissionLedgerConformanceViolation", {
|
|
@@ -8,8 +8,8 @@ import { U as PersistedJson, W as ProducerId, X as RecordEnvelope, _t as Submiss
|
|
|
8
8
|
import { s as digestJson } from "../Digest-ft4ku9pj.mjs";
|
|
9
9
|
import { AbortCommand, AbortIntentRequest, AdmissionConflict, AdmissionPolicyError, AdmissionRequest, ApprovalConflict, ApprovalDecisionCommand, ApprovalPendingSuspension, BeginChildBudgetReleaseRequest, ChildBudgetReservationRequest, ChildReservationConflict, ChildReservationId, ChildSettledNotification, ClaimHandoff, ClaimRequest, LedgerError, MarkInputAppliedRequest, MarkJoinedRequest, MarkReadyRequest, MarkUnknownRequest, OwnershipLost, ParentLinkage, RecoverySnapshotRequest, ReleaseChildBudgetRequest, ResolutionCompletedWithResult, ResolutionNeverHappened, ResolutionSafeToRetry, RevertJoiningRequest, Settlement, SettlementConflict, SettlementFinalization, SubmissionLedger, SubmissionLookupById, SubmissionLookupByKey, SuspendRequest, UnknownResolutionCommand, UnknownResolutionConflict, WaitingChild, WaitingForChildSuspension, submissionInputRecordId, submissionSettlementBatchId, submissionSettlementId, submissionSettlementRecordId } from "./SubmissionLedger.mjs";
|
|
10
10
|
import { S as runIdForSubmission } from "../RunJournal-oJLo-pjS.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import { a as make } from "../RunStorage-
|
|
11
|
+
import { L as ThreadMaterialization, W as ThreadReader, Y as ThreadStore, et as ThreadTailRequest, n as AppendRequest, st as getRecord } from "../ThreadStore-D2rqtt7k.mjs";
|
|
12
|
+
import { a as make } from "../RunStorage-DlfvMfHM.mjs";
|
|
13
13
|
import { SettlementPublication, SettlementPublisher } from "./SettlementPublisher.mjs";
|
|
14
14
|
import { DateTime, Duration, Effect, Exit, Option, Result, Schema, Scope, Stream } from "effect";
|
|
15
15
|
import { TestClock } from "effect/testing";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Dr as PendingSubmission, Or as SettledSubmission, kr as SubmissionStatus } from "../Admin-
|
|
1
|
+
import { Dr as PendingSubmission, Or as SettledSubmission, kr as SubmissionStatus } from "../Admin-NvXFPDIM.mjs";
|
|
2
2
|
export { PendingSubmission, SettledSubmission, SubmissionStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as defaultSubscriptionLimits, C as SubscriptionScanCursors, D as SubscriptionStore, E as SubscriptionSourceError, M as subscriptionKeyString, O as SubscriptionStoreFailure, S as SubscriptionRetentionPolicy, T as SubscriptionSnapshot, _ as SubscriptionKey, a as PreparedInput, b as SubscriptionRecord, c as SubscriptionAuthorizer, d as SubscriptionDelivery, f as SubscriptionDeliveryKey, g as SubscriptionFailpointError, h as SubscriptionFailpoint, i as EventSourceVersion, j as subscriptionDeliveryKeyString, l as SubscriptionChange, m as SubscriptionError, n as DeliveryChange, o as SourcePartition, p as SubscriptionDeliverySnapshot, r as EventAcknowledgement, s as SourceRecovery, t as AcceptedEvent, u as SubscriptionConfiguration, v as SubscriptionLimits, w as SubscriptionScope, x as SubscriptionRefusal, y as SubscriptionName } from "../Subscription-
|
|
1
|
+
import { A as defaultSubscriptionLimits, C as SubscriptionScanCursors, D as SubscriptionStore, E as SubscriptionSourceError, M as subscriptionKeyString, O as SubscriptionStoreFailure, S as SubscriptionRetentionPolicy, T as SubscriptionSnapshot, _ as SubscriptionKey, a as PreparedInput, b as SubscriptionRecord, c as SubscriptionAuthorizer, d as SubscriptionDelivery, f as SubscriptionDeliveryKey, g as SubscriptionFailpointError, h as SubscriptionFailpoint, i as EventSourceVersion, j as subscriptionDeliveryKeyString, l as SubscriptionChange, m as SubscriptionError, n as DeliveryChange, o as SourcePartition, p as SubscriptionDeliverySnapshot, r as EventAcknowledgement, s as SourceRecovery, t as AcceptedEvent, u as SubscriptionConfiguration, v as SubscriptionLimits, w as SubscriptionScope, x as SubscriptionRefusal, y as SubscriptionName } from "../Subscription-D2yn6Eo3.mjs";
|
|
2
2
|
export { AcceptedEvent, DeliveryChange, EventAcknowledgement, EventSourceVersion, PreparedInput, SourcePartition, SourceRecovery, SubscriptionAuthorizer, SubscriptionChange, SubscriptionConfiguration, SubscriptionDelivery, SubscriptionDeliveryKey, SubscriptionDeliverySnapshot, SubscriptionError, SubscriptionFailpoint, SubscriptionFailpointError, SubscriptionKey, SubscriptionLimits, SubscriptionName, SubscriptionRecord, SubscriptionRefusal, SubscriptionRetentionPolicy, SubscriptionScanCursors, SubscriptionScope, SubscriptionSnapshot, SubscriptionSourceError, SubscriptionStore, SubscriptionStoreFailure, defaultSubscriptionLimits, subscriptionDeliveryKeyString, subscriptionKeyString };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveSubscriptionInput, i as makeSubscriptionInputBinding, n as SubscriptionInputBindings, t as SubscriptionInputBinding } from "../SubscriptionInput-
|
|
1
|
+
import { a as resolveSubscriptionInput, i as makeSubscriptionInputBinding, n as SubscriptionInputBindings, t as SubscriptionInputBinding } from "../SubscriptionInput-Cog4x7Rd.mjs";
|
|
2
2
|
export { SubscriptionInputBinding, SubscriptionInputBindings, makeSubscriptionInputBinding, resolveSubscriptionInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as SubscriptionStore, O as SubscriptionStoreFailure, o as SourcePartition } from "../Subscription-
|
|
1
|
+
import { D as SubscriptionStore, O as SubscriptionStoreFailure, o as SourcePartition } from "../Subscription-D2yn6Eo3.mjs";
|
|
2
2
|
import { Effect, Schema } from "effect";
|
|
3
3
|
//#region src/durable/SubscriptionStoreConformance.d.ts
|
|
4
4
|
declare const SubscriptionStoreConformanceViolation_base: Schema.Class<SubscriptionStoreConformanceViolation, Schema.TaggedStruct<"SubscriptionStoreConformanceViolation", {
|
|
@@ -2,9 +2,9 @@ import { t as AgentId, u as ThreadId } from "../Identifiers-CN2s30fF.mjs";
|
|
|
2
2
|
import { r as Principal } from "../Receipt-BkM21Qiu.mjs";
|
|
3
3
|
import { t as DurableStep } from "../DurableStep-CAJnlgfL.mjs";
|
|
4
4
|
import { b as DefinitionDigests } from "../Records-BTnGRdcf.mjs";
|
|
5
|
-
import "../Admin-
|
|
5
|
+
import "../Admin-NvXFPDIM.mjs";
|
|
6
6
|
import { c as ScheduleDestination } from "../Schedule-CDgTz0vj.mjs";
|
|
7
|
-
import { E as SubscriptionSourceError, g as SubscriptionFailpointError, i as EventSourceVersion, m as SubscriptionError, w as SubscriptionScope } from "../Subscription-
|
|
7
|
+
import { E as SubscriptionSourceError, g as SubscriptionFailpointError, i as EventSourceVersion, m as SubscriptionError, w as SubscriptionScope } from "../Subscription-D2yn6Eo3.mjs";
|
|
8
8
|
import { Subscriptions } from "./Subscriptions.mjs";
|
|
9
9
|
import { Crypto, Layer, Schema } from "effect";
|
|
10
10
|
import { Tool, Toolkit } from "effect/ai";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as SubscriptionRecord, d as SubscriptionDelivery, l as SubscriptionChange, m as SubscriptionError, n as DeliveryChange, o as SourcePartition, t as AcceptedEvent, v as SubscriptionLimits } from "../Subscription-
|
|
1
|
+
import { b as SubscriptionRecord, d as SubscriptionDelivery, l as SubscriptionChange, m as SubscriptionError, n as DeliveryChange, o as SourcePartition, t as AcceptedEvent, v as SubscriptionLimits } from "../Subscription-D2yn6Eo3.mjs";
|
|
2
2
|
import { Result } from "effect";
|
|
3
3
|
declare namespace SubscriptionTransition_d_exports {
|
|
4
4
|
export { applySubscriptionChange, applySubscriptionDeliveryChange, sameAcceptedEventIdentity, sameSourcePartition, sameSubscriptionDelivery, subscriptionCanSelect, subscriptionDeliveryCanSelect, subscriptionDeliveryUsesCapacity, subscriptionMatchesEvent, subscriptionUsesCapacity, validateEventRetention };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as Principal } from "../Receipt-BkM21Qiu.mjs";
|
|
2
2
|
import { K as PersistedJson } from "../Records-BTnGRdcf.mjs";
|
|
3
|
-
import { pt as AdmissionFence } from "../Admin-
|
|
4
|
-
import { D as SubscriptionStore, E as SubscriptionSourceError, O as SubscriptionStoreFailure, T as SubscriptionSnapshot, _ as SubscriptionKey, c as SubscriptionAuthorizer, f as SubscriptionDeliveryKey, i as EventSourceVersion, m as SubscriptionError, p as SubscriptionDeliverySnapshot, r as EventAcknowledgement, u as SubscriptionConfiguration, v as SubscriptionLimits, w as SubscriptionScope } from "../Subscription-
|
|
5
|
-
import { r as EventSources } from "../EventSource-
|
|
6
|
-
import { t as PreparedInputAdmission } from "../PreparedInputAdmission-
|
|
7
|
-
import { n as SubscriptionInputBindings } from "../SubscriptionInput-
|
|
3
|
+
import { pt as AdmissionFence } from "../Admin-NvXFPDIM.mjs";
|
|
4
|
+
import { D as SubscriptionStore, E as SubscriptionSourceError, O as SubscriptionStoreFailure, T as SubscriptionSnapshot, _ as SubscriptionKey, c as SubscriptionAuthorizer, f as SubscriptionDeliveryKey, i as EventSourceVersion, m as SubscriptionError, p as SubscriptionDeliverySnapshot, r as EventAcknowledgement, u as SubscriptionConfiguration, v as SubscriptionLimits, w as SubscriptionScope } from "../Subscription-D2yn6Eo3.mjs";
|
|
5
|
+
import { r as EventSources } from "../EventSource-DNyaWmyQ.mjs";
|
|
6
|
+
import { t as PreparedInputAdmission } from "../PreparedInputAdmission-BQ9UCLFS.mjs";
|
|
7
|
+
import { n as SubscriptionInputBindings } from "../SubscriptionInput-Cog4x7Rd.mjs";
|
|
8
8
|
import { Context, Crypto, Effect, Layer } from "effect";
|
|
9
9
|
declare namespace Subscriptions_d_exports {
|
|
10
10
|
export { SubscribeOptions, SubscriptionDriver, SubscriptionFailure, SubscriptionIntake, Subscriptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $a as
|
|
1
|
+
import { $a as ThreadArchiveRangePublish, Ja as MAX_ARCHIVE_RANGE_PAGE, Qa as ThreadArchiveRangePage, Xa as MAX_CANONICAL_BATCH_BYTES, Ya as MAX_ARCHIVE_RANGE_RECORDS, Za as ThreadArchiveRange, eo as ThreadArchiveRangeRead, io as ThreadArchiveStorage, no as ThreadArchiveRangeSeal, qa as MAX_ARCHIVE_RANGE_BYTES, to as ThreadArchiveRangeRequest } from "../Admin-NvXFPDIM.mjs";
|
|
2
2
|
export { MAX_ARCHIVE_RANGE_BYTES, MAX_ARCHIVE_RANGE_PAGE, MAX_ARCHIVE_RANGE_RECORDS, MAX_CANONICAL_BATCH_BYTES, ThreadArchiveRange, ThreadArchiveRangePage, ThreadArchiveRangePublish, ThreadArchiveRangeRead, ThreadArchiveRangeRequest, ThreadArchiveRangeSeal, ThreadArchiveStorage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContextHistory, ContextHistoryError } from "../engine/ContextHistory.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Wi as ThreadStore } from "../Admin-NvXFPDIM.mjs";
|
|
3
3
|
import { Layer, Schema } from "effect";
|
|
4
4
|
declare namespace ThreadContextHistory_d_exports {
|
|
5
5
|
export { ThreadContextHistoryOptions, layer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { ContextHistory, ContextHistoryError, ContextHistoryHit, ContextHistoryPage, ContextHistoryRead, ContextHistorySearch } from "../engine/ContextHistory.mjs";
|
|
3
3
|
import { Z as RecordId, f as CanonicalSequence, u as CanonicalRecordEnvelope } from "../Records-CZRedCE7.mjs";
|
|
4
|
-
import { $ as
|
|
4
|
+
import { $ as ThreadTail, H as ThreadRead, Y as ThreadStore, et as ThreadTailRequest, x as SelectedThreadRead } from "../ThreadStore-D2rqtt7k.mjs";
|
|
5
5
|
import { matchText, normalizeQuery, project, windowIdFor } from "./ThreadContextHistoryProjection.mjs";
|
|
6
6
|
import { Effect, Layer, Schema, Stream } from "effect";
|
|
7
7
|
//#region src/durable/ThreadContextHistory.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as ThreadDeliveryImportReader, S as verifyImportedReferences, _ as reencodeThread, a as ThreadImport, b as validateImportedRunExecution, c as ThreadImportResult, d as finishThreadImport, f as invalidThreadArchive, g as rebuildImportedSubmission, h as rebuildClosedSubmission, i as ThreadArchive, m as prepareImportPage, n as PreparedImportPage, o as ThreadImportProgress, p as makeThreadImportProgress, r as RebuiltSubmission, s as ThreadImportRejected, t as PreparedImportBatch, u as captureImportSource, v as validateClosedRun, w as ThreadImportReader, x as verifyImportedInputOrder, y as validateImportedExecution } from "../ThreadImport-
|
|
1
|
+
import { C as ThreadDeliveryImportReader, S as verifyImportedReferences, _ as reencodeThread, a as ThreadImport, b as validateImportedRunExecution, c as ThreadImportResult, d as finishThreadImport, f as invalidThreadArchive, g as rebuildImportedSubmission, h as rebuildClosedSubmission, i as ThreadArchive, m as prepareImportPage, n as PreparedImportPage, o as ThreadImportProgress, p as makeThreadImportProgress, r as RebuiltSubmission, s as ThreadImportRejected, t as PreparedImportBatch, u as captureImportSource, v as validateClosedRun, w as ThreadImportReader, x as verifyImportedInputOrder, y as validateImportedExecution } from "../ThreadImport-em89zmM-.mjs";
|
|
2
2
|
export { PreparedImportBatch, PreparedImportPage, RebuiltSubmission, ThreadArchive, ThreadDeliveryImportReader, ThreadImport, ThreadImportProgress, ThreadImportReader, ThreadImportRejected, ThreadImportResult, captureImportSource, finishThreadImport, invalidThreadArchive, makeThreadImportProgress, prepareImportPage, rebuildClosedSubmission, rebuildImportedSubmission, reencodeThread, validateClosedRun, validateImportedExecution, validateImportedRunExecution, verifyImportedInputOrder, verifyImportedReferences };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as validateImportedRunExecution, a as ThreadImportResult, b as ThreadDeliveryImportReader, c as finishThreadImport, d as prepareImportPage, f as rebuildClosedSubmission, g as validateImportedExecution, h as validateClosedRun, i as ThreadImportRejected, l as invalidThreadArchive, m as reencodeThread, n as ThreadArchive, p as rebuildImportedSubmission, r as ThreadImport, s as captureImportSource, t as RebuiltSubmission, u as makeThreadImportProgress, v as verifyImportedInputOrder, x as ThreadImportReader, y as verifyImportedReferences } from "../ThreadImport-
|
|
1
|
+
import { _ as validateImportedRunExecution, a as ThreadImportResult, b as ThreadDeliveryImportReader, c as finishThreadImport, d as prepareImportPage, f as rebuildClosedSubmission, g as validateImportedExecution, h as validateClosedRun, i as ThreadImportRejected, l as invalidThreadArchive, m as reencodeThread, n as ThreadArchive, p as rebuildImportedSubmission, r as ThreadImport, s as captureImportSource, t as RebuiltSubmission, u as makeThreadImportProgress, v as verifyImportedInputOrder, x as ThreadImportReader, y as verifyImportedReferences } from "../ThreadImport-BoTfjjrz.mjs";
|
|
2
2
|
export { RebuiltSubmission, ThreadArchive, ThreadDeliveryImportReader, ThreadImport, ThreadImportReader, ThreadImportRejected, ThreadImportResult, captureImportSource, finishThreadImport, invalidThreadArchive, makeThreadImportProgress, prepareImportPage, rebuildClosedSubmission, rebuildImportedSubmission, reencodeThread, validateClosedRun, validateImportedExecution, validateImportedRunExecution, verifyImportedInputOrder, verifyImportedReferences };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as RunId, u as ThreadId } from "../Identifiers-CN2s30fF.mjs";
|
|
2
|
-
import { $r as ExecutionCheckpoint,
|
|
3
|
-
import { t as RunContextReader } from "../run-context-reader-
|
|
4
|
-
import { w as ThreadImportReader } from "../ThreadImport-
|
|
2
|
+
import { $r as ExecutionCheckpoint, Ki as ThreadStoreError, Si as ThreadExport, c as IntegrityReport, vn as SubmissionSnapshot, yi as ThreadCheckpoint } from "../Admin-NvXFPDIM.mjs";
|
|
3
|
+
import { t as RunContextReader } from "../run-context-reader-kpO9xhP2.mjs";
|
|
4
|
+
import { w as ThreadImportReader } from "../ThreadImport-em89zmM-.mjs";
|
|
5
5
|
import { Effect, Stream } from "effect";
|
|
6
6
|
declare namespace ThreadInvariants_d_exports {
|
|
7
7
|
export { ThreadInvariantInput, verifyThreadInvariants };
|
|
@@ -2,9 +2,9 @@ import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
|
2
2
|
import { f as CanonicalSequence } from "../Records-CZRedCE7.mjs";
|
|
3
3
|
import { submissionInputRecordId, submissionSettlementRecordId, workerTerminalFromRecord } from "./SubmissionLedger.mjs";
|
|
4
4
|
import { IntegrityCheck, IntegrityReport } from "./Admin.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { h as verifyRunContinuations } from "../RunContinuation-
|
|
7
|
-
import { _ as validateImportedRunExecution, c as finishThreadImport, d as prepareImportPage, g as validateImportedExecution, i as ThreadImportRejected, n as ThreadArchive, p as rebuildImportedSubmission, u as makeThreadImportProgress, v as verifyImportedInputOrder, x as ThreadImportReader, y as verifyImportedReferences } from "../ThreadImport-
|
|
5
|
+
import { D as ThreadExport, Z as ThreadStoreError, gt as canonicalRunIds, ht as recordEncoding } from "../ThreadStore-D2rqtt7k.mjs";
|
|
6
|
+
import { h as verifyRunContinuations } from "../RunContinuation-BF95Ncv2.mjs";
|
|
7
|
+
import { _ as validateImportedRunExecution, c as finishThreadImport, d as prepareImportPage, g as validateImportedExecution, i as ThreadImportRejected, n as ThreadArchive, p as rebuildImportedSubmission, u as makeThreadImportProgress, v as verifyImportedInputOrder, x as ThreadImportReader, y as verifyImportedReferences } from "../ThreadImport-BoTfjjrz.mjs";
|
|
8
8
|
import { Effect, Schema, Stream } from "effect";
|
|
9
9
|
//#region src/durable/ThreadInvariants.ts
|
|
10
10
|
var ThreadInvariants_exports = /* @__PURE__ */ __exportAll({ verifyThreadInvariants: () => verifyThreadInvariants });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Xr as AppendResult, Yr as AppendRequest } from "../Admin-
|
|
1
|
+
import { Xr as AppendResult, Yr as AppendRequest } from "../Admin-NvXFPDIM.mjs";
|
|
2
2
|
import { Context, Effect, Layer, Option, Schema } from "effect";
|
|
3
3
|
declare namespace ThreadProjectionMaintenance_d_exports {
|
|
4
4
|
export { ThreadProjectionError, ThreadProjectionMaintenance, ThreadProjectionMaintenanceService, drainDue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ai as
|
|
1
|
+
import { Ai as ThreadIdentity, Bi as ThreadRecordRequest, Di as ThreadExportRequest, Hi as ThreadRunInputRequest, Ii as ThreadPromptRead, Ki as ThreadStoreError, Li as ThreadRead, Ni as ThreadNotMaterialized, Pi as ThreadObservation, Ri as ThreadReadRequest, Si as ThreadExport, Xi as ThreadTailRequest, Yi as ThreadTail, aa as getRunInput, ia as getRecord, ji as ThreadIdentityRequest, na as ThreadWorkerStateRequest, sa as readWorkerState, zi as ThreadReader } from "../Admin-NvXFPDIM.mjs";
|
|
2
2
|
export { ThreadExport, ThreadExportRequest, ThreadIdentity, ThreadIdentityRequest, ThreadNotMaterialized, ThreadObservation, ThreadPromptRead, ThreadRead, ThreadReadRequest, ThreadReader, ThreadRecordRequest, ThreadRunInputRequest, ThreadStoreError, ThreadTail, ThreadTailRequest, ThreadWorkerStateRequest, getRecord, getRunInput, readWorkerState };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as ThreadTail, D as ThreadExport, F as ThreadIdentity, G as ThreadRecordRequest, H as ThreadRead, I as ThreadIdentityRequest, M as ThreadExportRequest, R as ThreadNotMaterialized, U as ThreadReadRequest, V as ThreadPromptRead, W as ThreadReader, Z as ThreadStoreError, at as ThreadWorkerStateRequest, ct as getRunInput, et as ThreadTailRequest, q as ThreadRunInputRequest, st as getRecord, ut as readWorkerState, z as ThreadObservation } from "../ThreadStore-D2rqtt7k.mjs";
|
|
2
2
|
export { ThreadExport, ThreadExportRequest, ThreadIdentity, ThreadIdentityRequest, ThreadNotMaterialized, ThreadObservation, ThreadPromptRead, ThreadRead, ThreadReadRequest, ThreadReader, ThreadRecordRequest, ThreadRunInputRequest, ThreadStoreError, ThreadTail, ThreadTailRequest, ThreadWorkerStateRequest, getRecord, getRunInput, readWorkerState };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { W as PROMPT_EVIDENCE_TAGS } from "../Records-BTnGRdcf.mjs";
|
|
2
|
-
import { $i as
|
|
3
|
-
export { AppendConflict, AppendRequest, AppendResult, CheckpointRejected, CommitBatch, ExecutionCheckpoint, ExecutionRead, ExecutionUpdate, LoadCheckpointRequest, MAX_PROMPT_CHECKPOINT_BYTES, MAX_PROMPT_CHECKPOINT_RUNS, MAX_THREAD_EXPORT_CURSOR_CHARS, MAX_THREAD_EXPORT_PAGE_BYTES, MAX_THREAD_EXPORT_PAGE_RECORDS, PROMPT_EVIDENCE_TAGS, PreparedAppend, PromptCheckpoint, PromptCheckpointHead, PromptCheckpointRead, PromptCheckpoints, SaveCheckpointRequest, SelectedThreadRead, ThreadAbortFact, ThreadAdmission, ThreadApprovalFact, ThreadCheckpoint, ThreadCheckpoints, ThreadCommands, ThreadExport, ThreadExportBatch, ThreadExportCursor, ThreadExportRecord, ThreadExportRejected, ThreadExportRequest, ThreadExportSnapshot, ThreadExportSource, ThreadIdentity, ThreadIdentityRequest, ThreadMaterialization, ThreadNotMaterialized, ThreadObservation, ThreadPeerCountRequest, ThreadPromptRead, ThreadRead, ThreadReadRequest, ThreadReader, ThreadRecordRequest, ThreadResolutionFact, ThreadRunInputRequest, ThreadSelection, ThreadStore, ThreadStoreDiagnostic, ThreadStoreError, ThreadStoreFailure, ThreadTail, ThreadTailRequest, ThreadVerificationRequest, ThreadVerificationStorage, ThreadWorkerCapacity, ThreadWorkerCapacityRequest, ThreadWorkerSeal, ThreadWorkerStateRequest, canonicalBatchFitsTransfer, getRecord, getRunInput, makeTransferFactCheck, readWorkerState, streamExport, transferPageFits };
|
|
2
|
+
import { $i as ThreadWorkerCapacity, $r as ExecutionCheckpoint, Ai as ThreadIdentity, Bi as ThreadRecordRequest, Ci as ThreadExportBatch, Di as ThreadExportRequest, Ei as ThreadExportRejected, Fi as ThreadPeerCountRequest, Gi as ThreadStoreDiagnostic, Hi as ThreadRunInputRequest, Ii as ThreadPromptRead, Jr as AppendConflict, Ki as ThreadStoreError, Li as ThreadRead, Mi as ThreadMaterialization, Ni as ThreadNotMaterialized, Oi as ThreadExportSnapshot, Pi as ThreadObservation, Qi as ThreadVerificationStorage, Qr as CommitBatch, Ri as ThreadReadRequest, Si as ThreadExport, Ti as ThreadExportRecord, Ui as ThreadSelection, Vi as ThreadResolutionFact, Wi as ThreadStore, Xi as ThreadTailRequest, Xr as AppendResult, Yi as ThreadTail, Yr as AppendRequest, Zi as ThreadVerificationRequest, Zr as CheckpointRejected, _i as ThreadAdmission, aa as getRunInput, ai as MAX_PROMPT_CHECKPOINT_RUNS, bi as ThreadCheckpoints, ca as streamExport, ci as MAX_THREAD_EXPORT_PAGE_RECORDS, di as PromptCheckpointHead, ea as ThreadWorkerCapacityRequest, ei as ExecutionRead, fi as PromptCheckpointRead, gi as ThreadAbortFact, hi as SelectedThreadRead, ia as getRecord, ii as MAX_PROMPT_CHECKPOINT_BYTES, ji as ThreadIdentityRequest, ki as ThreadExportSource, la as transferPageFits, li as PreparedAppend, mi as SaveCheckpointRequest, na as ThreadWorkerStateRequest, ni as FreshRunRead, oa as makeTransferFactCheck, oi as MAX_THREAD_EXPORT_CURSOR_CHARS, pi as PromptCheckpoints, qi as ThreadStoreFailure, ra as canonicalBatchFitsTransfer, ri as LoadCheckpointRequest, sa as readWorkerState, si as MAX_THREAD_EXPORT_PAGE_BYTES, ta as ThreadWorkerSeal, ti as ExecutionUpdate, ui as PromptCheckpoint, vi as ThreadApprovalFact, wi as ThreadExportCursor, xi as ThreadCommands, yi as ThreadCheckpoint, zi as ThreadReader } from "../Admin-NvXFPDIM.mjs";
|
|
3
|
+
export { AppendConflict, AppendRequest, AppendResult, CheckpointRejected, CommitBatch, ExecutionCheckpoint, ExecutionRead, ExecutionUpdate, FreshRunRead, LoadCheckpointRequest, MAX_PROMPT_CHECKPOINT_BYTES, MAX_PROMPT_CHECKPOINT_RUNS, MAX_THREAD_EXPORT_CURSOR_CHARS, MAX_THREAD_EXPORT_PAGE_BYTES, MAX_THREAD_EXPORT_PAGE_RECORDS, PROMPT_EVIDENCE_TAGS, PreparedAppend, PromptCheckpoint, PromptCheckpointHead, PromptCheckpointRead, PromptCheckpoints, SaveCheckpointRequest, SelectedThreadRead, ThreadAbortFact, ThreadAdmission, ThreadApprovalFact, ThreadCheckpoint, ThreadCheckpoints, ThreadCommands, ThreadExport, ThreadExportBatch, ThreadExportCursor, ThreadExportRecord, ThreadExportRejected, ThreadExportRequest, ThreadExportSnapshot, ThreadExportSource, ThreadIdentity, ThreadIdentityRequest, ThreadMaterialization, ThreadNotMaterialized, ThreadObservation, ThreadPeerCountRequest, ThreadPromptRead, ThreadRead, ThreadReadRequest, ThreadReader, ThreadRecordRequest, ThreadResolutionFact, ThreadRunInputRequest, ThreadSelection, ThreadStore, ThreadStoreDiagnostic, ThreadStoreError, ThreadStoreFailure, ThreadTail, ThreadTailRequest, ThreadVerificationRequest, ThreadVerificationStorage, ThreadWorkerCapacity, ThreadWorkerCapacityRequest, ThreadWorkerSeal, ThreadWorkerStateRequest, canonicalBatchFitsTransfer, getRecord, getRunInput, makeTransferFactCheck, readWorkerState, streamExport, transferPageFits };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { V as PROMPT_EVIDENCE_TAGS } from "../Records-CZRedCE7.mjs";
|
|
2
|
-
import { $ as
|
|
3
|
-
export { AppendConflict, AppendRequest, AppendResult, CheckpointRejected, CommitBatch, ExecutionCheckpoint, ExecutionRead, ExecutionUpdate, LoadCheckpointRequest, MAX_PROMPT_CHECKPOINT_BYTES, MAX_PROMPT_CHECKPOINT_RUNS, MAX_THREAD_EXPORT_CURSOR_CHARS, MAX_THREAD_EXPORT_PAGE_BYTES, MAX_THREAD_EXPORT_PAGE_RECORDS, PROMPT_EVIDENCE_TAGS, PreparedAppend, PromptCheckpoint, PromptCheckpointHead, PromptCheckpointRead, SaveCheckpointRequest, SelectedThreadRead, ThreadAbortFact, ThreadAdmission, ThreadApprovalFact, ThreadCheckpoint, ThreadCommands, ThreadExport, ThreadExportBatch, ThreadExportCursor, ThreadExportRecord, ThreadExportRejected, ThreadExportRequest, ThreadExportSnapshot, ThreadExportSource, ThreadIdentity, ThreadIdentityRequest, ThreadMaterialization, ThreadNotMaterialized, ThreadObservation, ThreadPeerCountRequest, ThreadPromptRead, ThreadRead, ThreadReadRequest, ThreadReader, ThreadRecordRequest, ThreadResolutionFact, ThreadRunInputRequest, ThreadSelection, ThreadStore, ThreadStoreDiagnostic, ThreadStoreError, ThreadTail, ThreadTailRequest, ThreadVerificationRequest, ThreadWorkerCapacity, ThreadWorkerCapacityRequest, ThreadWorkerSeal, ThreadWorkerStateRequest, canonicalBatchFitsTransfer, getRecord, getRunInput, makeTransferFactCheck, readWorkerState, streamExport, transferPageFits };
|
|
2
|
+
import { $ as ThreadTail, A as ThreadExportRecord, B as ThreadPeerCountRequest, C as ThreadAdmission, D as ThreadExport, E as ThreadCommands, F as ThreadIdentity, G as ThreadRecordRequest, H as ThreadRead, I as ThreadIdentityRequest, J as ThreadSelection, K as ThreadResolutionFact, L as ThreadMaterialization, M as ThreadExportRequest, N as ThreadExportSnapshot, O as ThreadExportBatch, P as ThreadExportSource, R as ThreadNotMaterialized, S as ThreadAbortFact, T as ThreadCheckpoint, U as ThreadReadRequest, V as ThreadPromptRead, W as ThreadReader, X as ThreadStoreDiagnostic, Y as ThreadStore, Z as ThreadStoreError, _ as PromptCheckpoint, a as CommitBatch, at as ThreadWorkerStateRequest, b as SaveCheckpointRequest, c as ExecutionUpdate, ct as getRunInput, d as MAX_PROMPT_CHECKPOINT_BYTES, dt as streamExport, et as ThreadTailRequest, f as MAX_PROMPT_CHECKPOINT_RUNS, ft as transferPageFits, g as PreparedAppend, h as MAX_THREAD_EXPORT_PAGE_RECORDS, i as CheckpointRejected, it as ThreadWorkerSeal, j as ThreadExportRejected, k as ThreadExportCursor, l as FreshRunRead, lt as makeTransferFactCheck, m as MAX_THREAD_EXPORT_PAGE_BYTES, n as AppendRequest, nt as ThreadWorkerCapacity, o as ExecutionCheckpoint, ot as canonicalBatchFitsTransfer, p as MAX_THREAD_EXPORT_CURSOR_CHARS, q as ThreadRunInputRequest, r as AppendResult, rt as ThreadWorkerCapacityRequest, s as ExecutionRead, st as getRecord, t as AppendConflict, tt as ThreadVerificationRequest, u as LoadCheckpointRequest, ut as readWorkerState, v as PromptCheckpointHead, w as ThreadApprovalFact, x as SelectedThreadRead, y as PromptCheckpointRead, z as ThreadObservation } from "../ThreadStore-D2rqtt7k.mjs";
|
|
3
|
+
export { AppendConflict, AppendRequest, AppendResult, CheckpointRejected, CommitBatch, ExecutionCheckpoint, ExecutionRead, ExecutionUpdate, FreshRunRead, LoadCheckpointRequest, MAX_PROMPT_CHECKPOINT_BYTES, MAX_PROMPT_CHECKPOINT_RUNS, MAX_THREAD_EXPORT_CURSOR_CHARS, MAX_THREAD_EXPORT_PAGE_BYTES, MAX_THREAD_EXPORT_PAGE_RECORDS, PROMPT_EVIDENCE_TAGS, PreparedAppend, PromptCheckpoint, PromptCheckpointHead, PromptCheckpointRead, SaveCheckpointRequest, SelectedThreadRead, ThreadAbortFact, ThreadAdmission, ThreadApprovalFact, ThreadCheckpoint, ThreadCommands, ThreadExport, ThreadExportBatch, ThreadExportCursor, ThreadExportRecord, ThreadExportRejected, ThreadExportRequest, ThreadExportSnapshot, ThreadExportSource, ThreadIdentity, ThreadIdentityRequest, ThreadMaterialization, ThreadNotMaterialized, ThreadObservation, ThreadPeerCountRequest, ThreadPromptRead, ThreadRead, ThreadReadRequest, ThreadReader, ThreadRecordRequest, ThreadResolutionFact, ThreadRunInputRequest, ThreadSelection, ThreadStore, ThreadStoreDiagnostic, ThreadStoreError, ThreadTail, ThreadTailRequest, ThreadVerificationRequest, ThreadWorkerCapacity, ThreadWorkerCapacityRequest, ThreadWorkerSeal, ThreadWorkerStateRequest, canonicalBatchFitsTransfer, getRecord, getRunInput, makeTransferFactCheck, readWorkerState, streamExport, transferPageFits };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Y as PromptRecordEnvelope, d as CanonicalRecordEnvelope } from "../Records-BTnGRdcf.mjs";
|
|
2
|
-
import { $i as
|
|
2
|
+
import { $i as ThreadWorkerCapacity, $r as ExecutionCheckpoint, Ai as ThreadIdentity, Di as ThreadExportRequest, Ei as ThreadExportRejected, Fi as ThreadPeerCountRequest, Ii as ThreadPromptRead, Jr as AppendConflict, Ki as ThreadStoreError, Mi as ThreadMaterialization, Ni as ThreadNotMaterialized, Pi as ThreadObservation, Qi as ThreadVerificationStorage, Ri as ThreadReadRequest, Si as ThreadExport, Ta as ThreadWorkStorage, Wi as ThreadStore, Xi as ThreadTailRequest, Xr as AppendResult, Xt as OwnershipLost, Yi as ThreadTail, Yr as AppendRequest, Zr as CheckpointRejected, bi as ThreadCheckpoints, ea as ThreadWorkerCapacityRequest, ei as ExecutionRead, fo as LifecyclePublicationStorage, io as ThreadArchiveStorage, ji as ThreadIdentityRequest, ni as FreshRunRead, pi as PromptCheckpoints, qi as ThreadStoreFailure } from "../Admin-NvXFPDIM.mjs";
|
|
3
3
|
import { Effect, Option, Schema, Stream } from "effect";
|
|
4
4
|
//#region src/durable/ThreadStoreConformance.d.ts
|
|
5
5
|
declare const ThreadStoreConformanceViolation_base: Schema.Class<ThreadStoreConformanceViolation, Schema.TaggedStruct<"ThreadStoreConformanceViolation", {
|
|
@@ -34,6 +34,7 @@ export declare const readTestThread: (store: Pick<{
|
|
|
34
34
|
readonly export: (request: ThreadExportRequest) => Effect.Effect<ThreadExport, ThreadStoreError | ThreadNotMaterialized | ThreadExportRejected>;
|
|
35
35
|
readonly inspectTail: (request: ThreadTailRequest) => Effect.Effect<ThreadTail, ThreadStoreError | ThreadNotMaterialized>;
|
|
36
36
|
readonly readIdentity: (request: ThreadIdentityRequest) => Effect.Effect<ThreadIdentity, ThreadStoreError | ThreadNotMaterialized>;
|
|
37
|
+
readonly readFreshRun?: (request: FreshRunRead) => Effect.Effect<Option.Option<ThreadIdentity>, ThreadStoreError | ThreadNotMaterialized>;
|
|
37
38
|
readonly readWorkerCapacity?: (request: ThreadWorkerCapacityRequest) => Effect.Effect<ThreadWorkerCapacity, ThreadStoreError | ThreadNotMaterialized>;
|
|
38
39
|
readonly checkpoints?: ThreadCheckpoints | undefined;
|
|
39
40
|
readonly promptCheckpoints?: PromptCheckpoints | undefined;
|
|
@@ -4,8 +4,8 @@ import { IdempotencyKey } from "../core/Receipt.mjs";
|
|
|
4
4
|
import { SubagentDelegationCaps, SubagentGrant, SubagentReservationAmounts } from "../core/SubagentContract.mjs";
|
|
5
5
|
import { Ft as WorkerInputRequested, H as PeerMessagePrepared, Lt as WorkerOriginRecorded, Nt as WorkerInputCompleted, Vt as WorkerStopRequested, W as ProducerId, X as RecordEnvelope, Z as RecordId, b as Digest, c as CanonicalBatch, f as CanonicalSequence, i as BatchId, kt as UserInputRecorded, vt as SubtreeBudgetReserved, y as DeploymentId } from "../Records-CZRedCE7.mjs";
|
|
6
6
|
import { O as subagentLineageRecordId, X as workerOriginRecordId } from "../RunJournal-oJLo-pjS.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { a as canonicalRecordBytes } from "../RunContinuation-
|
|
7
|
+
import { H as ThreadRead, I as ThreadIdentityRequest, L as ThreadMaterialization, M as ThreadExportRequest, R as ThreadNotMaterialized, T as ThreadCheckpoint, W as ThreadReader, Y as ThreadStore, Z as ThreadStoreError, b as SaveCheckpointRequest, ct as getRunInput, et as ThreadTailRequest, i as CheckpointRejected, n as AppendRequest, st as getRecord, t as AppendConflict, u as LoadCheckpointRequest, ut as readWorkerState, z as ThreadObservation } from "../ThreadStore-D2rqtt7k.mjs";
|
|
8
|
+
import { a as canonicalRecordBytes } from "../RunContinuation-BF95Ncv2.mjs";
|
|
9
9
|
import { DateTime, Effect, Option, Schema, Stream } from "effect";
|
|
10
10
|
//#region src/durable/ThreadStoreConformance.ts
|
|
11
11
|
/** A ThreadStore contract invariant that an adapter under test violated. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as ThreadId } from "../Identifiers-CN2s30fF.mjs";
|
|
2
2
|
import { d as CanonicalRecordEnvelope, et as RecordId } from "../Records-BTnGRdcf.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Di as ThreadExportRequest, Ei as ThreadExportRejected, Ki as ThreadStoreError, Ni as ThreadNotMaterialized, Si as ThreadExport } from "../Admin-NvXFPDIM.mjs";
|
|
4
4
|
import { Context, Effect, Schema } from "effect";
|
|
5
5
|
declare namespace ThreadTransfer_d_exports {
|
|
6
6
|
export { ThreadExporterReader, TransferFacts, TransferManifest, TransferSection, checkExportSource, checkTransferPageBytes, exportThreadPage, sameTransferManifest, transferDependencies, transferSections };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as checkTransferPageBytes, c as transferDependencies, i as checkExportSource, l as transferSections, o as exportThreadPage, r as TransferManifest, s as sameTransferManifest, t as ThreadExporterReader } from "../ThreadTransfer-
|
|
1
|
+
import { a as checkTransferPageBytes, c as transferDependencies, i as checkExportSource, l as transferSections, o as exportThreadPage, r as TransferManifest, s as sameTransferManifest, t as ThreadExporterReader } from "../ThreadTransfer-BFolkpEp.mjs";
|
|
2
2
|
export { ThreadExporterReader, TransferManifest, checkExportSource, checkTransferPageBytes, exportThreadPage, sameTransferManifest, transferDependencies, transferSections };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Aa as
|
|
1
|
+
import { Aa as WorkIndexProgress, Ba as deliveryPredecessor, Ca as ThreadWorkPage, Da as WORK_INDEX_VERSION, Fa as WorkThreadsRequest, Ga as workId, Ha as operationEvidence, Ia as WorkerReportingMode, Ka as workIndexChanges, La as admissionWork, Ma as WorkOwner, Na as WorkStateReference, Oa as WorkDiscoveryUnavailable, Pa as WorkThreadsPage, Ra as advanceWorkEntry, Sa as ThreadWorkEntry, Ta as ThreadWorkStorage, Ua as resolveWorkEvidence, Va as encodeWorkCursor, Wa as validateWorkPage, _a as MAX_WORK_PAGE_ENTRIES, ba as ThreadWorkCursor, da as FreshAdmissionWork, fa as MAX_RECOVERY_PAGES, ga as MAX_WORK_PAGE_BYTES, ha as MAX_WORK_ENTRY_BYTES, ja as WorkIndexRebuildRequest, ka as WorkIndexChange, ma as MAX_WORK_CURSOR_CHARS, pa as MAX_RECOVERY_WORK_ITEMS, ua as CanonicalWorkEntry, va as MAX_WORK_REBUILD_BYTES, wa as ThreadWorkRequest, xa as ThreadWorkDiscovery, ya as MAX_WORK_REBUILD_RECORDS, za as decodeWorkCursor } from "../Admin-NvXFPDIM.mjs";
|
|
2
2
|
export { CanonicalWorkEntry, FreshAdmissionWork, MAX_RECOVERY_PAGES, MAX_RECOVERY_WORK_ITEMS, MAX_WORK_CURSOR_CHARS, MAX_WORK_ENTRY_BYTES, MAX_WORK_PAGE_BYTES, MAX_WORK_PAGE_ENTRIES, MAX_WORK_REBUILD_BYTES, MAX_WORK_REBUILD_RECORDS, ThreadWorkCursor, ThreadWorkDiscovery, ThreadWorkEntry, ThreadWorkPage, ThreadWorkRequest, ThreadWorkStorage, WORK_INDEX_VERSION, WorkDiscoveryUnavailable, WorkIndexChange, WorkIndexProgress, WorkIndexRebuildRequest, WorkOwner, WorkStateReference, WorkThreadsPage, WorkThreadsRequest, WorkerReportingMode, admissionWork, advanceWorkEntry, decodeWorkCursor, deliveryPredecessor, encodeWorkCursor, operationEvidence, resolveWorkEvidence, validateWorkPage, workId, workIndexChanges };
|
|
@@ -5,8 +5,8 @@ import { IdempotencyKey, QueueSequence } from "../core/Receipt.mjs";
|
|
|
5
5
|
import { Z as RecordId, b as Digest, f as CanonicalSequence } from "../Records-CZRedCE7.mjs";
|
|
6
6
|
import { s as digestJson } from "../Digest-ft4ku9pj.mjs";
|
|
7
7
|
import { S as runIdForSubmission } from "../RunJournal-oJLo-pjS.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import { a as canonicalRecordBytes, x as resolveEvidence } from "../RunContinuation-
|
|
8
|
+
import { W as ThreadReader, Y as ThreadStore, Z as ThreadStoreError } from "../ThreadStore-D2rqtt7k.mjs";
|
|
9
|
+
import { a as canonicalRecordBytes, x as resolveEvidence } from "../RunContinuation-BF95Ncv2.mjs";
|
|
10
10
|
import { Context, Effect, Layer, Option, Schema, Stream } from "effect";
|
|
11
11
|
//#region src/durable/ThreadWork.ts
|
|
12
12
|
var ThreadWork_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -3,7 +3,7 @@ import { a as Receipt } 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 { b as DefinitionDigests } from "../Records-BTnGRdcf.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { Gt as LedgerError, Jr as AppendConflict, Ki as ThreadStoreError, Ni as ThreadNotMaterialized, Wi as ThreadStore, Xt as OwnershipLost, Zt as ParentLinkage, _t as AdmissionPolicyError, bt as AdmissionResult, dn as SubmissionLedger, ft as AdmissionConflict } from "../Admin-NvXFPDIM.mjs";
|
|
7
7
|
import { n as DurableRuntimeFailpoint, r as DurableRuntimeFailpointError } from "../DurableFailpoint-BugHZKvJ.mjs";
|
|
8
8
|
import { t as WakeScheduler } from "../WakeScheduler-DJIMMf77.mjs";
|
|
9
9
|
import { Context, Effect, Schema } from "effect";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as admitWorker, n as WorkerAdmissionPort, r as WorkerAdmissionRequest, t as WorkerAdmissionFailure } from "../WorkerAdmission-
|
|
1
|
+
import { a as admitWorker, n as WorkerAdmissionPort, r as WorkerAdmissionRequest, t as WorkerAdmissionFailure } from "../WorkerAdmission-CtX1HRkm.mjs";
|
|
2
2
|
export { WorkerAdmissionFailure, WorkerAdmissionPort, WorkerAdmissionRequest, admitWorker };
|
|
@@ -5,7 +5,7 @@ import { t as AgentPolicy } from "../AgentPolicy-B4lbCU2T.mjs";
|
|
|
5
5
|
import { r as AnyDefinition, t as Agent_d_exports } from "../Agent-B39jRnFv.mjs";
|
|
6
6
|
import { c as WorkerError, f as WorkerRef, h as WorkerSource } from "../Worker-CLYgfqhF.mjs";
|
|
7
7
|
import { Ft as WorkerContinuation, K as PersistedJson, S as Digest, b as DefinitionDigests, p as CanonicalSequence, zt as WorkerOrigin } from "../Records-BTnGRdcf.mjs";
|
|
8
|
-
import { vn as SubmissionSnapshot } from "../Admin-
|
|
8
|
+
import { vn as SubmissionSnapshot } from "../Admin-NvXFPDIM.mjs";
|
|
9
9
|
import { Context, Effect, Option, Schema } from "effect";
|
|
10
10
|
declare namespace WorkerHost_d_exports {
|
|
11
11
|
export { WorkerBudgetAuthorizer, WorkerConcurrencyLimit, WorkerConcurrencyResolver, WorkerHostAuthorizationRequest, WorkerHostAuthorizer, WorkerHostConfig, WorkerHostLimits, WorkerPolicyResolver, WorkerPolicySource, WorkerPolicyTarget, WorkerStartAdmission };
|
package/dist/index.d.mts
CHANGED
|
@@ -61,7 +61,7 @@ import { t as ProvisionalText_d_exports } from "./core/ProvisionalText.mjs";
|
|
|
61
61
|
import { nt as Records_d_exports } from "./Records-BTnGRdcf.mjs";
|
|
62
62
|
import { t as ActivityStore_d_exports } from "./durable/ActivityStore.mjs";
|
|
63
63
|
import { n as Digest_d_exports } from "./Digest-DjUgS5PG.mjs";
|
|
64
|
-
import { Ar as SubmissionStatus_d_exports,
|
|
64
|
+
import { Ar as SubmissionStatus_d_exports, Ds as AgentRegistration_d_exports, Ea as ThreadWork_d_exports, Ji as ThreadStore_d_exports, Oo as RunJournal_d_exports, Yn as DurableAgentRuntime_d_exports, pn as SubmissionLedger_d_exports, po as LifecyclePublication_d_exports, q as Recovery_d_exports, ro as ThreadArchiveRange_d_exports, t as Admin_d_exports } from "./Admin-NvXFPDIM.mjs";
|
|
65
65
|
import { t as DurableFailpoint_d_exports } from "./DurableFailpoint-BugHZKvJ.mjs";
|
|
66
66
|
import { a as OperationAuthorizer_d_exports } from "./OperationAuthorizer-TzcQtpX5.mjs";
|
|
67
67
|
import { s as RecordFormat_d_exports } from "./RecordFormat-BNiLpe43.mjs";
|
|
@@ -69,21 +69,21 @@ import { l as ToolReconciler_d_exports } from "./ToolReconciler-SrOHkvF8.mjs";
|
|
|
69
69
|
import { n as WakeScheduler_d_exports } from "./WakeScheduler-DJIMMf77.mjs";
|
|
70
70
|
import { t as CommittedActivity_d_exports } from "./durable/CommittedActivity.mjs";
|
|
71
71
|
import { R as Schedule_d_exports } from "./Schedule-CDgTz0vj.mjs";
|
|
72
|
-
import { k as Subscription_d_exports } from "./Subscription-
|
|
73
|
-
import { n as EventSource_d_exports } from "./EventSource-
|
|
74
|
-
import { n as PreparedInputAdmission_d_exports } from "./PreparedInputAdmission-
|
|
75
|
-
import { r as SubscriptionInput_d_exports } from "./SubscriptionInput-
|
|
72
|
+
import { k as Subscription_d_exports } from "./Subscription-D2yn6Eo3.mjs";
|
|
73
|
+
import { n as EventSource_d_exports } from "./EventSource-DNyaWmyQ.mjs";
|
|
74
|
+
import { n as PreparedInputAdmission_d_exports } from "./PreparedInputAdmission-BQ9UCLFS.mjs";
|
|
75
|
+
import { r as SubscriptionInput_d_exports } from "./SubscriptionInput-Cog4x7Rd.mjs";
|
|
76
76
|
import { t as Subscriptions_d_exports } from "./durable/Subscriptions.mjs";
|
|
77
|
-
import { g as MessageDelivery_d_exports } from "./MessageDelivery-
|
|
77
|
+
import { g as MessageDelivery_d_exports } from "./MessageDelivery-CLzWJImC.mjs";
|
|
78
78
|
import { t as PersistentHistory_d_exports } from "./durable/PersistentHistory.mjs";
|
|
79
|
-
import { i as RunContinuation_d_exports } from "./RunContinuation-
|
|
79
|
+
import { i as RunContinuation_d_exports } from "./RunContinuation-CL0wBsQE.mjs";
|
|
80
80
|
import { t as ScheduleTransition_d_exports } from "./durable/ScheduleTransition.mjs";
|
|
81
81
|
import { t as Scheduling_d_exports } from "./durable/Scheduling.mjs";
|
|
82
82
|
import { t as SubscriptionTools_d_exports } from "./durable/SubscriptionTools.mjs";
|
|
83
83
|
import { t as SubscriptionTransition_d_exports } from "./durable/SubscriptionTransition.mjs";
|
|
84
84
|
import { t as ThreadContextHistory_d_exports } from "./durable/ThreadContextHistory.mjs";
|
|
85
85
|
import { t as ThreadContextHistoryProjection_d_exports } from "./durable/ThreadContextHistoryProjection.mjs";
|
|
86
|
-
import { l as ThreadImport_d_exports } from "./ThreadImport-
|
|
86
|
+
import { l as ThreadImport_d_exports } from "./ThreadImport-em89zmM-.mjs";
|
|
87
87
|
import { t as ThreadInvariants_d_exports } from "./durable/ThreadInvariants.mjs";
|
|
88
88
|
import { t as ThreadProjection_d_exports } from "./durable/ThreadProjection.mjs";
|
|
89
89
|
import { t as ThreadProjectionMaintenance_d_exports } from "./durable/ThreadProjectionMaintenance.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -72,7 +72,7 @@ import { t as Admin_exports } from "./durable/Admin.mjs";
|
|
|
72
72
|
import { t as AgentRegistration_exports } from "./durable/AgentRegistration.mjs";
|
|
73
73
|
import { t as RecordFormat_exports } from "./durable/RecordFormat.mjs";
|
|
74
74
|
import { n as RunJournal_exports } from "./RunJournal-oJLo-pjS.mjs";
|
|
75
|
-
import {
|
|
75
|
+
import { Q as ThreadStore_exports } from "./ThreadStore-D2rqtt7k.mjs";
|
|
76
76
|
import { t as Schedule_exports } from "./durable/Schedule.mjs";
|
|
77
77
|
import { t as PreparedInputAdmission_exports } from "./durable/PreparedInputAdmission.mjs";
|
|
78
78
|
import { t as Subscription_exports } from "./durable/Subscription.mjs";
|
|
@@ -80,11 +80,11 @@ import { t as MessageDelivery_exports } from "./durable/MessageDelivery.mjs";
|
|
|
80
80
|
import { t as ThreadArchiveRange_exports } from "./durable/ThreadArchiveRange.mjs";
|
|
81
81
|
import { t as CommittedActivity_exports } from "./durable/CommittedActivity.mjs";
|
|
82
82
|
import { t as DurableFailpoint_exports } from "./durable/DurableFailpoint.mjs";
|
|
83
|
-
import { i as RunContinuation_exports } from "./RunContinuation-
|
|
83
|
+
import { i as RunContinuation_exports } from "./RunContinuation-BF95Ncv2.mjs";
|
|
84
84
|
import { t as ThreadWork_exports } from "./durable/ThreadWork.mjs";
|
|
85
85
|
import { t as WakeScheduler_exports } from "./durable/WakeScheduler.mjs";
|
|
86
|
-
import { r as DurableAgentRuntime_exports } from "./DurableAgentRuntime-
|
|
87
|
-
import { i as WorkerAdmission_exports } from "./WorkerAdmission-
|
|
86
|
+
import { r as DurableAgentRuntime_exports } from "./DurableAgentRuntime-CWhu1exp.mjs";
|
|
87
|
+
import { i as WorkerAdmission_exports } from "./WorkerAdmission-CtX1HRkm.mjs";
|
|
88
88
|
import { t as WorkerHost_exports } from "./durable/WorkerHost.mjs";
|
|
89
89
|
import { t as OperationAuthorizer_exports } from "./durable/OperationAuthorizer.mjs";
|
|
90
90
|
import { t as SubmissionStatus_exports } from "./durable/SubmissionStatus.mjs";
|
|
@@ -97,8 +97,8 @@ import { t as SubscriptionInput_exports } from "./durable/SubscriptionInput.mjs"
|
|
|
97
97
|
import { t as Subscriptions_exports } from "./durable/Subscriptions.mjs";
|
|
98
98
|
import { t as SubscriptionTools_exports } from "./durable/SubscriptionTools.mjs";
|
|
99
99
|
import { t as SubscriptionTransition_exports } from "./durable/SubscriptionTransition.mjs";
|
|
100
|
-
import { o as ThreadImport_exports } from "./ThreadImport-
|
|
101
|
-
import { n as ThreadTransfer_exports } from "./ThreadTransfer-
|
|
100
|
+
import { o as ThreadImport_exports } from "./ThreadImport-BoTfjjrz.mjs";
|
|
101
|
+
import { n as ThreadTransfer_exports } from "./ThreadTransfer-BFolkpEp.mjs";
|
|
102
102
|
import { t as ThreadInvariants_exports } from "./durable/ThreadInvariants.mjs";
|
|
103
103
|
import { t as ThreadProjection_exports } from "./durable/ThreadProjection.mjs";
|
|
104
104
|
import { t as ThreadProjectionMaintenance_exports } from "./durable/ThreadProjectionMaintenance.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
|
|
2
2
|
import { d as CanonicalRecordEnvelope, et as RecordId } from "./Records-BTnGRdcf.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Ii as ThreadPromptRead, Ki as ThreadStoreError, Ni as ThreadNotMaterialized, Ts as JournalRecordEnvelope, zi as ThreadReader } from "./Admin-NvXFPDIM.mjs";
|
|
4
4
|
import { Context, Effect, Layer, Stream } from "effect";
|
|
5
5
|
//#region src/durable/internal/run-context-reader.d.ts
|
|
6
6
|
declare const RunContextReader_base: Context.ServiceClass<RunContextReader, "@effect-agent/thread/RunContextReader", {
|
|
@@ -14,4 +14,4 @@ declare class RunContextReader extends RunContextReader_base {
|
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
16
|
export { RunContextReader as t };
|
|
17
|
-
//# sourceMappingURL=run-context-reader-
|
|
17
|
+
//# sourceMappingURL=run-context-reader-kpO9xhP2.d.mts.map
|