@yielded/agent 0.1.0-beta.181 → 0.1.0-beta.183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Admin-NvXFPDIM.d.mts → Admin-BgCHCGSl.d.mts} +8 -8
- package/dist/{AgentRuntime-Dx5u_FJD.d.mts → AgentRuntime-DhRchFzv.d.mts} +7 -4
- package/dist/{AgentRuntime-BAExRlgu.mjs → AgentRuntime-ILtyHuQG.mjs} +61 -45
- package/dist/AgentRuntime-ILtyHuQG.mjs.map +1 -0
- package/dist/{Digest-DjUgS5PG.d.mts → Digest-1iVcDLVm.d.mts} +2 -2
- package/dist/{Digest-ft4ku9pj.mjs → Digest-CzLJcsWv.mjs} +2 -2
- package/dist/{Digest-ft4ku9pj.mjs.map → Digest-CzLJcsWv.mjs.map} +1 -1
- package/dist/{DurableAgentRuntime-HH2muFrT.mjs → DurableAgentRuntime-Cj263rW9.mjs} +27 -57
- package/dist/DurableAgentRuntime-Cj263rW9.mjs.map +1 -0
- package/dist/{EventSource-DNyaWmyQ.d.mts → EventSource-CaA6RAtC.d.mts} +3 -3
- package/dist/InMemory.d.mts +1 -1
- package/dist/{MessageDelivery-CLzWJImC.d.mts → MessageDelivery-rlLpakO8.d.mts} +43 -43
- package/dist/{PreparedInputAdmission-BQ9UCLFS.d.mts → PreparedInputAdmission-DjbWz2lW.d.mts} +4 -4
- package/dist/{RecordFormat-BNiLpe43.d.mts → RecordFormat-CjMl0uu8.d.mts} +2 -2
- package/dist/{Records-BTnGRdcf.d.mts → Records-BP67Yz6n.d.mts} +20 -8
- package/dist/{Records-CZRedCE7.mjs → Records-bbGVHprv.mjs} +14 -10
- package/dist/Records-bbGVHprv.mjs.map +1 -0
- package/dist/{RunContinuation-CL0wBsQE.d.mts → RunContinuation-CIJRN_vC.d.mts} +5 -4
- package/dist/{RunContinuation-BF95Ncv2.mjs → RunContinuation-DJ6kkbQG.mjs} +22 -58
- package/dist/RunContinuation-DJ6kkbQG.mjs.map +1 -0
- package/dist/{RunEvent-C5jVQZ6K.d.mts → RunEvent-Bh1p4zAO.d.mts} +2 -2
- package/dist/{RunJournal-oJLo-pjS.mjs → RunJournal-DQr2dUgg.mjs} +4 -7
- package/dist/RunJournal-DQr2dUgg.mjs.map +1 -0
- package/dist/{RunOptions-BANtohGk.d.mts → RunOptions-aBHR-Eqm.d.mts} +6 -3
- package/dist/{RunStorage-DlfvMfHM.mjs → RunStorage-DblN-cmM.mjs} +2 -2
- package/dist/{RunStorage-DlfvMfHM.mjs.map → RunStorage-DblN-cmM.mjs.map} +1 -1
- package/dist/{Schedule-CDgTz0vj.d.mts → Schedule-CVLtl5rP.d.mts} +2 -2
- package/dist/{Scheduling-BebkRVc2.mjs → Scheduling-B6l0lWdr.mjs} +3 -3
- package/dist/{Scheduling-BebkRVc2.mjs.map → Scheduling-B6l0lWdr.mjs.map} +1 -1
- package/dist/{Subagent-D68fe7mr.mjs → Subagent-Bm842K7J.mjs} +43 -17
- package/dist/Subagent-Bm842K7J.mjs.map +1 -0
- package/dist/{Subagent-5ulnV6An.d.mts → Subagent-CWWmA1UQ.d.mts} +17 -5
- package/dist/{Subscription-D2yn6Eo3.d.mts → Subscription-BRsNy0TA.d.mts} +4 -4
- package/dist/{SubscriptionInput-Cog4x7Rd.d.mts → SubscriptionInput-ClCaW_kX.d.mts} +3 -3
- package/dist/{ThreadHistory-KPPBJLJb.d.mts → ThreadHistory-ajQhqZDY.d.mts} +2 -2
- package/dist/{ThreadImport-BoTfjjrz.mjs → ThreadImport-CkPAxXU5.mjs} +7 -7
- package/dist/{ThreadImport-BoTfjjrz.mjs.map → ThreadImport-CkPAxXU5.mjs.map} +1 -1
- package/dist/{ThreadImport-em89zmM-.d.mts → ThreadImport-DtRNoHIr.d.mts} +5 -5
- package/dist/{ThreadStore-D2rqtt7k.mjs → ThreadStore-C_ofHc7h.mjs} +4 -4
- package/dist/{ThreadStore-D2rqtt7k.mjs.map → ThreadStore-C_ofHc7h.mjs.map} +1 -1
- package/dist/{ThreadTransfer-BFolkpEp.mjs → ThreadTransfer-C_TRuo_9.mjs} +4 -4
- package/dist/{ThreadTransfer-BFolkpEp.mjs.map → ThreadTransfer-C_TRuo_9.mjs.map} +1 -1
- package/dist/{WorkerAdmission-DrxDrLII.mjs → WorkerAdmission-9Ka3edXj.mjs} +5 -5
- package/dist/{WorkerAdmission-DrxDrLII.mjs.map → WorkerAdmission-9Ka3edXj.mjs.map} +1 -1
- package/dist/{agent-registration-BovXT8jc.mjs → agent-registration-7kp1dHT0.mjs} +4 -4
- package/dist/{agent-registration-BovXT8jc.mjs.map → agent-registration-7kp1dHT0.mjs.map} +1 -1
- package/dist/capabilities/Commands.d.mts +1 -1
- package/dist/capabilities/Redaction.d.mts +1 -1
- package/dist/capabilities/RunHooks.d.mts +1 -1
- package/dist/capabilities/Subagent.d.mts +1 -1
- package/dist/capabilities/Subagent.mjs +1 -1
- package/dist/capabilities/SubagentReservations.d.mts +4 -1
- package/dist/capabilities/SubagentReservations.mjs +4 -1
- package/dist/capabilities/SubagentReservations.mjs.map +1 -1
- package/dist/core/RunEvent.d.mts +1 -1
- package/dist/core/RunEvent.mjs +1 -1
- package/dist/core/RunEvent.mjs.map +1 -1
- package/dist/durable/ActivityStore.d.mts +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 +3 -3
- package/dist/durable/CommittedActivity.mjs +3 -3
- package/dist/durable/Digest.d.mts +1 -1
- 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 +42 -42
- 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.d.mts +1 -1
- package/dist/durable/RecordFormat.mjs +1 -1
- package/dist/durable/Records.d.mts +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 +3 -3
- package/dist/durable/RunContinuation.mjs +3 -3
- package/dist/durable/RunJournal.d.mts +1 -1
- package/dist/durable/RunJournal.mjs +1 -1
- package/dist/durable/RunStorage.d.mts +1 -1
- package/dist/durable/RunStorage.mjs +1 -1
- package/dist/durable/Schedule.d.mts +1 -1
- package/dist/durable/Schedule.mjs +1 -1
- package/dist/durable/ScheduleStoreConformance.d.mts +1 -1
- package/dist/durable/ScheduleStoreConformance.mjs +1 -1
- package/dist/durable/ScheduleTransition.d.mts +1 -1
- package/dist/durable/ScheduleTransition.mjs +1 -1
- package/dist/durable/Scheduling.d.mts +3 -3
- 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/SubmissionLedger.d.mts +1 -1
- package/dist/durable/SubmissionLedger.mjs +2 -2
- package/dist/durable/SubmissionLedgerConformance.d.mts +2 -2
- package/dist/durable/SubmissionLedgerConformance.mjs +5 -5
- package/dist/durable/SubmissionStatus.d.mts +1 -1
- package/dist/durable/Subscription.d.mts +1 -1
- package/dist/durable/Subscription.mjs +1 -1
- 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 +4 -4
- package/dist/durable/SubscriptionTransition.d.mts +1 -1
- package/dist/durable/SubscriptionTransition.mjs +1 -1
- package/dist/durable/Subscriptions.d.mts +6 -6
- 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.d.mts +1 -1
- 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.d.mts +1 -1
- 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 +2 -2
- package/dist/durable/ThreadStore.mjs +2 -2
- package/dist/durable/ThreadStoreConformance.d.mts +2 -2
- package/dist/durable/ThreadStoreConformance.mjs +4 -4
- package/dist/durable/ThreadTransfer.d.mts +2 -2
- package/dist/durable/ThreadTransfer.mjs +1 -1
- package/dist/durable/ThreadWork.d.mts +1 -1
- package/dist/durable/ThreadWork.mjs +5 -5
- package/dist/durable/ToolReconciler.mjs +1 -1
- package/dist/durable/WorkerAdmission.d.mts +2 -2
- package/dist/durable/WorkerAdmission.mjs +1 -1
- package/dist/durable/WorkerHost.d.mts +2 -2
- package/dist/engine/AgentRuntime.d.mts +1 -1
- package/dist/engine/AgentRuntime.mjs +1 -1
- package/dist/engine/RunOptions.d.mts +1 -1
- package/dist/engine/RunOptions.mjs.map +1 -1
- package/dist/engine/ThreadHistory.d.mts +1 -1
- package/dist/index.d.mts +17 -17
- package/dist/index.mjs +12 -12
- package/dist/{run-context-reader-kpO9xhP2.d.mts → run-context-reader-DEU4REfD.d.mts} +3 -3
- package/package.json +1 -1
- package/src/capabilities/Subagent.ts +83 -28
- package/src/capabilities/SubagentReservations.ts +4 -1
- package/src/capabilities/internal/subagent-contract.ts +23 -3
- package/src/core/RunEvent.ts +1 -1
- package/src/durable/DurableAgentRuntime.ts +64 -14
- package/src/durable/Records.ts +21 -15
- package/src/durable/RunContinuation.ts +64 -125
- package/src/durable/RunJournal.ts +4 -12
- package/src/durable/internal/history-prompt.ts +10 -4
- package/src/durable/internal/initial-context.ts +1 -1
- package/src/durable/internal/prompt-history-cache.ts +8 -63
- package/src/engine/RunOptions.ts +4 -1
- package/src/engine/internal/agent-runtime.ts +422 -387
- package/dist/AgentRuntime-BAExRlgu.mjs.map +0 -1
- package/dist/DurableAgentRuntime-HH2muFrT.mjs.map +0 -1
- package/dist/Records-CZRedCE7.mjs.map +0 -1
- package/dist/RunContinuation-BF95Ncv2.mjs.map +0 -1
- package/dist/RunJournal-oJLo-pjS.mjs.map +0 -1
- package/dist/Subagent-D68fe7mr.mjs.map +0 -1
- package/dist/json-BlJVQZxN.mjs +0 -15
- package/dist/json-BlJVQZxN.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunEvent.mjs","names":[],"sources":["../../src/core/RunEvent.ts"],"sourcesContent":["import * as Schema from \"effect/Schema\";\n\nimport { Update } from \"./AgentUpdates.ts\";\nimport { AgentId, ThreadId, DelegationId, RunId, ToolCallId, TurnId } from \"./Identifiers.ts\";\nimport { DelegationDepth } from \"./SubagentContract.ts\";\nimport { Selection } from \"./ToolExposure.ts\";\nimport { RunTotals } from \"./Usage.ts\";\n\nconst RunEventBase = {\n eventVersion: Schema.Literal(1),\n runId: RunId,\n threadId: ThreadId,\n agentId: AgentId,\n sequence: Schema.Natural,\n timestamp: Schema.DateTimeUtcFromString,\n turnId: Schema.optionalKey(TurnId),\n toolCallId: Schema.optionalKey(ToolCallId),\n};\n\n/** A schema-encoded Agent update accepted by the owning Run. */\nexport class AgentUpdateEmitted extends Schema.TaggedClass<AgentUpdateEmitted>()(\n \"AgentUpdateEmitted\",\n { ...RunEventBase, update: Update },\n) {}\n\n/** Signals that the runtime has created a run and assigned its identities. */\nexport class RunStarted extends Schema.TaggedClass<RunStarted>()(\"RunStarted\", RunEventBase) {}\n\n/** Signals the start of a positive-numbered model turn. */\nexport class TurnStarted extends Schema.TaggedClass<TurnStarted>()(\"TurnStarted\", {\n ...RunEventBase,\n turn: Schema.Int.check(Schema.isGreaterThan(0)),\n}) {}\n\n/** Signals that the model request for a turn is starting. */\nexport class ModelStarted extends Schema.TaggedClass<ModelStarted>()(\"ModelStarted\", {\n ...RunEventBase,\n turn: Schema.Int.check(Schema.isGreaterThan(0)),\n}) {}\n\n/** Discard all drafts for this turnId; a new model request will include joined input. */\nexport class ModelRestarted extends Schema.TaggedClass<ModelRestarted>()(\"ModelRestarted\", {\n ...RunEventBase,\n turnId: TurnId,\n turn: Schema.Int.check(Schema.isGreaterThan(0)),\n reason: Schema.Literal(\"joined-input\"),\n}) {}\n\n/** Carries one live assistant text delta. */\nexport class TextDelta extends Schema.TaggedClass<TextDelta>()(\"TextDelta\", {\n ...RunEventBase,\n text: Schema.String,\n}) {}\n\n/** Carries reasoning content explicitly exposed by the provider. */\nexport class ReasoningDelta extends Schema.TaggedClass<ReasoningDelta>()(\"ReasoningDelta\", {\n ...RunEventBase,\n text: Schema.String,\n}) {}\n\n/** Reports a complete model-declared Tool Call and its execution boundary. */\nexport class ToolCallDeclared extends Schema.TaggedClass<ToolCallDeclared>()(\"ToolCallDeclared\", {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n parameters: Schema.Json,\n providerExecuted: Schema.Boolean,\n}) {}\n\n/** Signals that a validated Tool Call handler has started. */\nexport class ToolCallStarted extends Schema.TaggedClass<ToolCallStarted>()(\"ToolCallStarted\", {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n}) {}\n\n/** Carries a preliminary Tool result that is not the call's terminal outcome. */\nexport class ToolProgress extends Schema.TaggedClass<ToolProgress>()(\"ToolProgress\", {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n result: Schema.Json,\n providerExecuted: Schema.Boolean,\n}) {}\n\n/** Records the successful terminal result of a Tool Call. */\nexport class ToolCallSucceeded extends Schema.TaggedClass<ToolCallSucceeded>()(\n \"ToolCallSucceeded\",\n {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n toolSelection: Schema.optionalKey(Selection),\n result: Schema.Json,\n providerExecuted: Schema.Boolean,\n },\n) {}\n\n/**\n * How this boundary handled a failed invocation, independently of its native failure mode.\n * `returned-to-model` records the result path; delivery still requires the complete batch to\n * commit and a later model call. A sibling, policy or later operation can still fail the Run.\n * This classification never implies that side effects were rolled back.\n */\nexport const ToolFailureHandling = Schema.Literals([\n \"propagated\",\n \"returned-to-model\",\n \"returned-to-caller\",\n]);\n\nexport type ToolFailureHandling = typeof ToolFailureHandling.Type;\n\n/** Records a terminal Tool Call failure using safe, serializable diagnostics. */\nexport class ToolCallFailed extends Schema.TaggedClass<ToolCallFailed>()(\"ToolCallFailed\", {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n errorTag: Schema.NonEmptyString,\n message: Schema.String,\n providerExecuted: Schema.Boolean,\n /** Native configuration when a local Tool is known; absent on provider results and old events. */\n failureMode: Schema.optionalKey(Schema.Literals([\"error\", \"return\"])),\n /** Actual route at this boundary. Absence on older events means unknown, never recoverable. */\n failureHandling: Schema.optionalKey(ToolFailureHandling),\n /** Synthetic policy rejection; no handler ran and the failure streak is unchanged. */\n budgetRejected: Schema.optionalKey(Schema.Literal(true)),\n}) {}\n\n/** Signals that a decoded Tool Call requires approval before execution. */\nexport class ApprovalRequested extends Schema.TaggedClass<ApprovalRequested>()(\n \"ApprovalRequested\",\n {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n },\n) {}\n\n/** Records the normalized finish reason for a completed assistant turn. */\nexport class TurnCompleted extends Schema.TaggedClass<TurnCompleted>()(\"TurnCompleted\", {\n ...RunEventBase,\n turn: Schema.Int.check(Schema.isGreaterThan(0)),\n finishReason: Schema.Literals([\n \"stop\",\n \"length\",\n \"content-filter\",\n \"tool-calls\",\n \"error\",\n \"pause\",\n \"other\",\n \"unknown\",\n ]),\n}) {}\n\n/** Advisory that one policy limit crossed its warning fraction; emitted once per limit per run. */\nexport class BudgetWarning extends Schema.TaggedClass<BudgetWarning>()(\"BudgetWarning\", {\n ...RunEventBase,\n limit: Schema.Literals([\"tokens\", \"tool-calls\", \"turns\", \"duration\", \"context\"]),\n consumed: Schema.Natural,\n limitValue: Schema.Natural,\n}) {}\n\n/** Records that the engine reduced model context at a Turn seam without erasing source history. */\nexport class CompactionPerformed extends Schema.TaggedClass<CompactionPerformed>()(\n \"CompactionPerformed\",\n {\n ...RunEventBase,\n turn: Schema.Int.check(Schema.isGreaterThan(0)),\n kind: Schema.Literals([\"clear-tool-results\", \"summarize\", \"rollover\"]),\n tokensBeforeEstimate: Schema.Natural,\n tokensAfterEstimate: Schema.Natural,\n },\n) {}\n\n/**\n * Dimension that bound when a Run settled through the final-answer resolution\n * (RUN-018; the token dimension per RUN-025). This is the exhausted marker\n * the re-delegation grant flow (RUN-021) consumes and the durable\n * `SubmissionSettled` record persists (RUN-011).\n */\nexport const ExhaustedLimit = Schema.Literals([\"tokens\", \"tool-calls\", \"turns\"]);\nexport type ExhaustedLimit = typeof ExhaustedLimit.Type;\n\nconst CompletionFinishReason = Schema.Literals([\"completed\", \"model-stop\", \"budget-exhausted\"]);\n\ntype CompletionMetadata = Readonly<{\n finishReason: typeof CompletionFinishReason.Type;\n exhausted?: ExhaustedLimit | undefined;\n}>;\n\nconst validateCompletionMetadata = ({\n exhausted,\n finishReason,\n}: CompletionMetadata): string | undefined => {\n const isBudgetExhausted = finishReason === \"budget-exhausted\";\n\n return isBudgetExhausted === (exhausted !== undefined)\n ? undefined\n : '`exhausted` must be present exactly when `finishReason` is \"budget-exhausted\"';\n};\n\nconst RunCompletedFields = Schema.Struct({\n ...RunEventBase,\n output: Schema.Json,\n /** Schema-encoded application disposition, present only for an ordinary completed Run. */\n runDisposition: Schema.optionalKey(Schema.Json),\n turns: Schema.Int.check(Schema.isGreaterThan(0)),\n finishReason: CompletionFinishReason,\n exhausted: Schema.optionalKey(ExhaustedLimit),\n /** Own Run usage, excluding attached descendants. Missing legacy reports are unknown. */\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n}).check(\n Schema.makeFilter((event) => validateCompletionMetadata(event)),\n Schema.makeFilter((event) =>\n event.finishReason === \"budget-exhausted\" && event.runDisposition !== undefined\n ? {\n path: [\"runDisposition\"],\n issue: '`runDisposition` is not allowed when `finishReason` is \"budget-exhausted\"',\n }\n : undefined,\n ),\n);\n\n/**\n * Successful terminal event carrying Schema-compatible output and the completed turn count.\n * `\"budget-exhausted\"` marks a Run that settled through the policy's final-answer resolution\n * after Turn, Tool Call, or token exhaustion — never a plain `\"model-stop\"` (RUN-011); its\n * `turns` count may exceed `maxTurns` by the single grace Turn, and `exhausted` names the\n * dimension that bound.\n *\n * Invariant: `exhausted` is present exactly when `finishReason` is\n * `\"budget-exhausted\"`, and a budget-exhausted completion has no application\n * run disposition. The checked Struct enforces both rules during construction,\n * decoding, and encoding without replacing the class in `RunEvent`.\n */\nexport class RunCompleted extends Schema.TaggedClass<RunCompleted>()(\n \"RunCompleted\",\n RunCompletedFields,\n) {}\n\n/** Terminal event for a run that failed with an expected error. */\nexport class RunFailed extends Schema.TaggedClass<RunFailed>()(\"RunFailed\", {\n ...RunEventBase,\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n errorTag: Schema.NonEmptyString,\n message: Schema.String,\n}) {}\n\n/** Terminal event for a run stopped by interruption. */\nexport class RunInterrupted extends Schema.TaggedClass<RunInterrupted>()(\"RunInterrupted\", {\n ...RunEventBase,\n message: Schema.String,\n}) {}\n\n/** Terminal event for a run awaiting resumable external input. */\nexport class RunSuspended extends Schema.TaggedClass<RunSuspended>()(\"RunSuspended\", {\n ...RunEventBase,\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n reason: Schema.String,\n}) {}\n\nconst SubagentText = Schema.String.check(Schema.isMaxLength(4 * 1024));\n\nconst SubagentEventBase = {\n ...RunEventBase,\n turnId: TurnId,\n toolCallId: ToolCallId,\n delegationId: DelegationId,\n childThreadId: ThreadId,\n childRunId: RunId,\n targetAgentId: AgentId,\n depth: DelegationDepth,\n};\n\n/** Signals that a delegation Tool Call passed preflight with preallocated child identity. */\nexport class SubagentRequested extends Schema.TaggedClass<SubagentRequested>()(\n \"SubagentRequested\",\n SubagentEventBase,\n) {}\n\n/** Signals that the child run has started inside its parent-owned scoped region. */\nexport class SubagentStarted extends Schema.TaggedClass<SubagentStarted>()(\n \"SubagentStarted\",\n SubagentEventBase,\n) {}\n\n/** Carries a bounded child progress summary without duplicating the child event stream. */\nexport class SubagentProgress extends Schema.TaggedClass<SubagentProgress>()(\"SubagentProgress\", {\n ...SubagentEventBase,\n summary: SubagentText,\n}) {}\n\n/**\n * Records the child run's successful terminal outcome before the parent join.\n * Same invariant as `RunCompleted`: `exhausted` is present exactly when\n * `finishReason` is `\"budget-exhausted\"` (the pair travels verbatim from the\n * child's terminal event); consumers treat a divergent pair fail-safe.\n */\nexport class SubagentCompleted extends Schema.TaggedClass<SubagentCompleted>()(\n \"SubagentCompleted\",\n Schema.Struct({\n ...SubagentEventBase,\n turns: Schema.Int.check(Schema.isGreaterThan(0)),\n finishReason: CompletionFinishReason,\n exhausted: Schema.optionalKey(ExhaustedLimit),\n /**\n * The child's own observed usage. Delegated usage covers its attached descendants separately.\n */\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n }).check(Schema.makeFilter((event) => validateCompletionMetadata(event))),\n) {}\n\n/** Records the child run's expected terminal failure using safe, serializable diagnostics. */\nexport class SubagentFailed extends Schema.TaggedClass<SubagentFailed>()(\"SubagentFailed\", {\n ...SubagentEventBase,\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n errorTag: Schema.NonEmptyString,\n message: SubagentText,\n}) {}\n\n/** Records that the child run was stopped by interruption before a terminal outcome. */\nexport class SubagentInterrupted extends Schema.TaggedClass<SubagentInterrupted>()(\n \"SubagentInterrupted\",\n {\n ...SubagentEventBase,\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n reason: SubagentText,\n },\n) {}\n\n/** Records that the child's terminal outcome was joined into its parent delegation Tool Call. */\nexport class SubagentJoined extends Schema.TaggedClass<SubagentJoined>()(\"SubagentJoined\", {\n ...SubagentEventBase,\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n}) {}\n\n/** Versioned union of stable semantic run events, excluding raw provider chunks. */\nexport const RunEvent = Schema.Union([\n AgentUpdateEmitted,\n RunStarted,\n TurnStarted,\n ModelStarted,\n ModelRestarted,\n TextDelta,\n ReasoningDelta,\n ToolCallDeclared,\n ToolCallStarted,\n ToolProgress,\n ToolCallSucceeded,\n ToolCallFailed,\n ApprovalRequested,\n TurnCompleted,\n BudgetWarning,\n CompactionPerformed,\n RunCompleted,\n RunFailed,\n RunInterrupted,\n RunSuspended,\n SubagentRequested,\n SubagentStarted,\n SubagentProgress,\n SubagentCompleted,\n SubagentFailed,\n SubagentInterrupted,\n SubagentJoined,\n]);\n\nexport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Aa,oBAAb,cAAuC,OAAO,YAA+B,CAAC,CAC5E,qBACA,OAAO,OAAO;CACZ,GAAG;CACH,OAAO,OAAO,IAAI,MAAM,OAAO,cAAc,CAAC,CAAC;CAC/C,cAAc;CACd,WAAW,OAAO,YAAY,cAAc;;;;CAI5C,OAAO,OAAO,YAAY,SAAS;CACnC,gBAAgB,OAAO,YAAY,SAAS;AAC9C,CAAC,CAAC,CAAC,MAAM,OAAO,YAAY,UAAU,2BAA2B,KAAK,CAAC,CAAC,CAC1E,CAAC,CAAC,CAAC;;AAGH,IAAa,iBAAb,cAAoC,OAAO,YAA4B,CAAC,CAAC,kBAAkB;CACzF,GAAG;CACH,OAAO,OAAO,YAAY,SAAS;CACnC,gBAAgB,OAAO,YAAY,SAAS;CAC5C,UAAU,OAAO;CACjB,SAAS;AACX,CAAC,CAAC,CAAC,CAAC;;AAGJ,IAAa,sBAAb,cAAyC,OAAO,YAAiC,CAAC,CAChF,uBACA;CACE,GAAG;CACH,OAAO,OAAO,YAAY,SAAS;CACnC,gBAAgB,OAAO,YAAY,SAAS;CAC5C,QAAQ;AACV,CACF,CAAC,CAAC,CAAC;;AAGH,IAAa,iBAAb,cAAoC,OAAO,YAA4B,CAAC,CAAC,kBAAkB;CACzF,GAAG;CACH,OAAO,OAAO,YAAY,SAAS;CACnC,gBAAgB,OAAO,YAAY,SAAS;AAC9C,CAAC,CAAC,CAAC,CAAC;;AAGJ,MAAa,WAAW,OAAO,MAAM;CACnC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"RunEvent.mjs","names":[],"sources":["../../src/core/RunEvent.ts"],"sourcesContent":["import * as Schema from \"effect/Schema\";\n\nimport { Update } from \"./AgentUpdates.ts\";\nimport { AgentId, ThreadId, DelegationId, RunId, ToolCallId, TurnId } from \"./Identifiers.ts\";\nimport { DelegationDepth } from \"./SubagentContract.ts\";\nimport { Selection } from \"./ToolExposure.ts\";\nimport { RunTotals } from \"./Usage.ts\";\n\nconst RunEventBase = {\n eventVersion: Schema.Literal(1),\n runId: RunId,\n threadId: ThreadId,\n agentId: AgentId,\n sequence: Schema.Natural,\n timestamp: Schema.DateTimeUtcFromString,\n turnId: Schema.optionalKey(TurnId),\n toolCallId: Schema.optionalKey(ToolCallId),\n};\n\n/** A schema-encoded Agent update accepted by the owning Run. */\nexport class AgentUpdateEmitted extends Schema.TaggedClass<AgentUpdateEmitted>()(\n \"AgentUpdateEmitted\",\n { ...RunEventBase, update: Update },\n) {}\n\n/** Signals that the runtime has created a run and assigned its identities. */\nexport class RunStarted extends Schema.TaggedClass<RunStarted>()(\"RunStarted\", RunEventBase) {}\n\n/** Signals the start of a positive-numbered model turn. */\nexport class TurnStarted extends Schema.TaggedClass<TurnStarted>()(\"TurnStarted\", {\n ...RunEventBase,\n turn: Schema.Int.check(Schema.isGreaterThan(0)),\n}) {}\n\n/** Signals that the model request for a turn is starting. */\nexport class ModelStarted extends Schema.TaggedClass<ModelStarted>()(\"ModelStarted\", {\n ...RunEventBase,\n turn: Schema.Int.check(Schema.isGreaterThan(0)),\n}) {}\n\n/** Discard all drafts for this turnId; a new model request will include joined input. */\nexport class ModelRestarted extends Schema.TaggedClass<ModelRestarted>()(\"ModelRestarted\", {\n ...RunEventBase,\n turnId: TurnId,\n turn: Schema.Int.check(Schema.isGreaterThan(0)),\n reason: Schema.Literal(\"joined-input\"),\n}) {}\n\n/** Carries one live assistant text delta. */\nexport class TextDelta extends Schema.TaggedClass<TextDelta>()(\"TextDelta\", {\n ...RunEventBase,\n text: Schema.String,\n}) {}\n\n/** Carries reasoning content explicitly exposed by the provider. */\nexport class ReasoningDelta extends Schema.TaggedClass<ReasoningDelta>()(\"ReasoningDelta\", {\n ...RunEventBase,\n text: Schema.String,\n}) {}\n\n/** Reports a complete model-declared Tool Call and its execution boundary. */\nexport class ToolCallDeclared extends Schema.TaggedClass<ToolCallDeclared>()(\"ToolCallDeclared\", {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n parameters: Schema.Json,\n providerExecuted: Schema.Boolean,\n}) {}\n\n/** Signals that a validated Tool Call handler has started. */\nexport class ToolCallStarted extends Schema.TaggedClass<ToolCallStarted>()(\"ToolCallStarted\", {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n}) {}\n\n/** Carries a preliminary Tool result that is not the call's terminal outcome. */\nexport class ToolProgress extends Schema.TaggedClass<ToolProgress>()(\"ToolProgress\", {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n result: Schema.Json,\n providerExecuted: Schema.Boolean,\n}) {}\n\n/** Records the successful terminal result of a Tool Call. */\nexport class ToolCallSucceeded extends Schema.TaggedClass<ToolCallSucceeded>()(\n \"ToolCallSucceeded\",\n {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n toolSelection: Schema.optionalKey(Selection),\n result: Schema.Json,\n providerExecuted: Schema.Boolean,\n },\n) {}\n\n/**\n * How this boundary handled a failed invocation, independently of its native failure mode.\n * `returned-to-model` records the result path; delivery still requires the complete batch to\n * commit and a later model call. A sibling, policy or later operation can still fail the Run.\n * This classification never implies that side effects were rolled back.\n */\nexport const ToolFailureHandling = Schema.Literals([\n \"propagated\",\n \"returned-to-model\",\n \"returned-to-caller\",\n]);\n\nexport type ToolFailureHandling = typeof ToolFailureHandling.Type;\n\n/** Records a terminal Tool Call failure using safe, serializable diagnostics. */\nexport class ToolCallFailed extends Schema.TaggedClass<ToolCallFailed>()(\"ToolCallFailed\", {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n errorTag: Schema.NonEmptyString,\n message: Schema.String,\n providerExecuted: Schema.Boolean,\n /** Native configuration when a local Tool is known; absent on provider results and old events. */\n failureMode: Schema.optionalKey(Schema.Literals([\"error\", \"return\"])),\n /** Actual route at this boundary. Absence on older events means unknown, never recoverable. */\n failureHandling: Schema.optionalKey(ToolFailureHandling),\n /** Synthetic policy or capacity rejection; no handler ran and the failure streak is unchanged. */\n budgetRejected: Schema.optionalKey(Schema.Literal(true)),\n}) {}\n\n/** Signals that a decoded Tool Call requires approval before execution. */\nexport class ApprovalRequested extends Schema.TaggedClass<ApprovalRequested>()(\n \"ApprovalRequested\",\n {\n ...RunEventBase,\n toolCallId: ToolCallId,\n toolName: Schema.NonEmptyString,\n },\n) {}\n\n/** Records the normalized finish reason for a completed assistant turn. */\nexport class TurnCompleted extends Schema.TaggedClass<TurnCompleted>()(\"TurnCompleted\", {\n ...RunEventBase,\n turn: Schema.Int.check(Schema.isGreaterThan(0)),\n finishReason: Schema.Literals([\n \"stop\",\n \"length\",\n \"content-filter\",\n \"tool-calls\",\n \"error\",\n \"pause\",\n \"other\",\n \"unknown\",\n ]),\n}) {}\n\n/** Advisory that one policy limit crossed its warning fraction; emitted once per limit per run. */\nexport class BudgetWarning extends Schema.TaggedClass<BudgetWarning>()(\"BudgetWarning\", {\n ...RunEventBase,\n limit: Schema.Literals([\"tokens\", \"tool-calls\", \"turns\", \"duration\", \"context\"]),\n consumed: Schema.Natural,\n limitValue: Schema.Natural,\n}) {}\n\n/** Records that the engine reduced model context at a Turn seam without erasing source history. */\nexport class CompactionPerformed extends Schema.TaggedClass<CompactionPerformed>()(\n \"CompactionPerformed\",\n {\n ...RunEventBase,\n turn: Schema.Int.check(Schema.isGreaterThan(0)),\n kind: Schema.Literals([\"clear-tool-results\", \"summarize\", \"rollover\"]),\n tokensBeforeEstimate: Schema.Natural,\n tokensAfterEstimate: Schema.Natural,\n },\n) {}\n\n/**\n * Dimension that bound when a Run settled through the final-answer resolution\n * (RUN-018; the token dimension per RUN-025). This is the exhausted marker\n * the re-delegation grant flow (RUN-021) consumes and the durable\n * `SubmissionSettled` record persists (RUN-011).\n */\nexport const ExhaustedLimit = Schema.Literals([\"tokens\", \"tool-calls\", \"turns\"]);\nexport type ExhaustedLimit = typeof ExhaustedLimit.Type;\n\nconst CompletionFinishReason = Schema.Literals([\"completed\", \"model-stop\", \"budget-exhausted\"]);\n\ntype CompletionMetadata = Readonly<{\n finishReason: typeof CompletionFinishReason.Type;\n exhausted?: ExhaustedLimit | undefined;\n}>;\n\nconst validateCompletionMetadata = ({\n exhausted,\n finishReason,\n}: CompletionMetadata): string | undefined => {\n const isBudgetExhausted = finishReason === \"budget-exhausted\";\n\n return isBudgetExhausted === (exhausted !== undefined)\n ? undefined\n : '`exhausted` must be present exactly when `finishReason` is \"budget-exhausted\"';\n};\n\nconst RunCompletedFields = Schema.Struct({\n ...RunEventBase,\n output: Schema.Json,\n /** Schema-encoded application disposition, present only for an ordinary completed Run. */\n runDisposition: Schema.optionalKey(Schema.Json),\n turns: Schema.Int.check(Schema.isGreaterThan(0)),\n finishReason: CompletionFinishReason,\n exhausted: Schema.optionalKey(ExhaustedLimit),\n /** Own Run usage, excluding attached descendants. Missing legacy reports are unknown. */\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n}).check(\n Schema.makeFilter((event) => validateCompletionMetadata(event)),\n Schema.makeFilter((event) =>\n event.finishReason === \"budget-exhausted\" && event.runDisposition !== undefined\n ? {\n path: [\"runDisposition\"],\n issue: '`runDisposition` is not allowed when `finishReason` is \"budget-exhausted\"',\n }\n : undefined,\n ),\n);\n\n/**\n * Successful terminal event carrying Schema-compatible output and the completed turn count.\n * `\"budget-exhausted\"` marks a Run that settled through the policy's final-answer resolution\n * after Turn, Tool Call, or token exhaustion — never a plain `\"model-stop\"` (RUN-011); its\n * `turns` count may exceed `maxTurns` by the single grace Turn, and `exhausted` names the\n * dimension that bound.\n *\n * Invariant: `exhausted` is present exactly when `finishReason` is\n * `\"budget-exhausted\"`, and a budget-exhausted completion has no application\n * run disposition. The checked Struct enforces both rules during construction,\n * decoding, and encoding without replacing the class in `RunEvent`.\n */\nexport class RunCompleted extends Schema.TaggedClass<RunCompleted>()(\n \"RunCompleted\",\n RunCompletedFields,\n) {}\n\n/** Terminal event for a run that failed with an expected error. */\nexport class RunFailed extends Schema.TaggedClass<RunFailed>()(\"RunFailed\", {\n ...RunEventBase,\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n errorTag: Schema.NonEmptyString,\n message: Schema.String,\n}) {}\n\n/** Terminal event for a run stopped by interruption. */\nexport class RunInterrupted extends Schema.TaggedClass<RunInterrupted>()(\"RunInterrupted\", {\n ...RunEventBase,\n message: Schema.String,\n}) {}\n\n/** Terminal event for a run awaiting resumable external input. */\nexport class RunSuspended extends Schema.TaggedClass<RunSuspended>()(\"RunSuspended\", {\n ...RunEventBase,\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n reason: Schema.String,\n}) {}\n\nconst SubagentText = Schema.String.check(Schema.isMaxLength(4 * 1024));\n\nconst SubagentEventBase = {\n ...RunEventBase,\n turnId: TurnId,\n toolCallId: ToolCallId,\n delegationId: DelegationId,\n childThreadId: ThreadId,\n childRunId: RunId,\n targetAgentId: AgentId,\n depth: DelegationDepth,\n};\n\n/** Signals that a delegation Tool Call passed preflight with preallocated child identity. */\nexport class SubagentRequested extends Schema.TaggedClass<SubagentRequested>()(\n \"SubagentRequested\",\n SubagentEventBase,\n) {}\n\n/** Signals that the child run has started inside its parent-owned scoped region. */\nexport class SubagentStarted extends Schema.TaggedClass<SubagentStarted>()(\n \"SubagentStarted\",\n SubagentEventBase,\n) {}\n\n/** Carries a bounded child progress summary without duplicating the child event stream. */\nexport class SubagentProgress extends Schema.TaggedClass<SubagentProgress>()(\"SubagentProgress\", {\n ...SubagentEventBase,\n summary: SubagentText,\n}) {}\n\n/**\n * Records the child run's successful terminal outcome before the parent join.\n * Same invariant as `RunCompleted`: `exhausted` is present exactly when\n * `finishReason` is `\"budget-exhausted\"` (the pair travels verbatim from the\n * child's terminal event); consumers treat a divergent pair fail-safe.\n */\nexport class SubagentCompleted extends Schema.TaggedClass<SubagentCompleted>()(\n \"SubagentCompleted\",\n Schema.Struct({\n ...SubagentEventBase,\n turns: Schema.Int.check(Schema.isGreaterThan(0)),\n finishReason: CompletionFinishReason,\n exhausted: Schema.optionalKey(ExhaustedLimit),\n /**\n * The child's own observed usage. Delegated usage covers its attached descendants separately.\n */\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n }).check(Schema.makeFilter((event) => validateCompletionMetadata(event))),\n) {}\n\n/** Records the child run's expected terminal failure using safe, serializable diagnostics. */\nexport class SubagentFailed extends Schema.TaggedClass<SubagentFailed>()(\"SubagentFailed\", {\n ...SubagentEventBase,\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n errorTag: Schema.NonEmptyString,\n message: SubagentText,\n}) {}\n\n/** Records that the child run was stopped by interruption before a terminal outcome. */\nexport class SubagentInterrupted extends Schema.TaggedClass<SubagentInterrupted>()(\n \"SubagentInterrupted\",\n {\n ...SubagentEventBase,\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n reason: SubagentText,\n },\n) {}\n\n/** Records that the child's terminal outcome was joined into its parent delegation Tool Call. */\nexport class SubagentJoined extends Schema.TaggedClass<SubagentJoined>()(\"SubagentJoined\", {\n ...SubagentEventBase,\n usage: Schema.optionalKey(RunTotals),\n delegatedUsage: Schema.optionalKey(RunTotals),\n}) {}\n\n/** Versioned union of stable semantic run events, excluding raw provider chunks. */\nexport const RunEvent = Schema.Union([\n AgentUpdateEmitted,\n RunStarted,\n TurnStarted,\n ModelStarted,\n ModelRestarted,\n TextDelta,\n ReasoningDelta,\n ToolCallDeclared,\n ToolCallStarted,\n ToolProgress,\n ToolCallSucceeded,\n ToolCallFailed,\n ApprovalRequested,\n TurnCompleted,\n BudgetWarning,\n CompactionPerformed,\n RunCompleted,\n RunFailed,\n RunInterrupted,\n RunSuspended,\n SubagentRequested,\n SubagentStarted,\n SubagentProgress,\n SubagentCompleted,\n SubagentFailed,\n SubagentInterrupted,\n SubagentJoined,\n]);\n\nexport type RunEvent = typeof RunEvent.Type;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,MAAM,eAAe;CACnB,cAAc,OAAO,QAAQ,CAAC;CAC9B,OAAO;CACP,UAAU;CACV,SAAS;CACT,UAAU,OAAO;CACjB,WAAW,OAAO;CAClB,QAAQ,OAAO,YAAY,MAAM;CACjC,YAAY,OAAO,YAAY,UAAU;AAC3C;;AAGA,IAAa,qBAAb,cAAwC,OAAO,YAAgC,CAAC,CAC9E,sBACA;CAAE,GAAG;CAAc,QAAQ;AAAO,CACpC,CAAC,CAAC,CAAC;;AAGH,IAAa,aAAb,cAAgC,OAAO,YAAwB,CAAC,CAAC,cAAc,YAAY,CAAC,CAAC,CAAC;;AAG9F,IAAa,cAAb,cAAiC,OAAO,YAAyB,CAAC,CAAC,eAAe;CAChF,GAAG;CACH,MAAM,OAAO,IAAI,MAAM,OAAO,cAAc,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC,CAAC;;AAGJ,IAAa,eAAb,cAAkC,OAAO,YAA0B,CAAC,CAAC,gBAAgB;CACnF,GAAG;CACH,MAAM,OAAO,IAAI,MAAM,OAAO,cAAc,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC,CAAC;;AAGJ,IAAa,iBAAb,cAAoC,OAAO,YAA4B,CAAC,CAAC,kBAAkB;CACzF,GAAG;CACH,QAAQ;CACR,MAAM,OAAO,IAAI,MAAM,OAAO,cAAc,CAAC,CAAC;CAC9C,QAAQ,OAAO,QAAQ,cAAc;AACvC,CAAC,CAAC,CAAC,CAAC;;AAGJ,IAAa,YAAb,cAA+B,OAAO,YAAuB,CAAC,CAAC,aAAa;CAC1E,GAAG;CACH,MAAM,OAAO;AACf,CAAC,CAAC,CAAC,CAAC;;AAGJ,IAAa,iBAAb,cAAoC,O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from "../Records-BP67Yz6n.mjs";
|
|
2
2
|
import { Context, Effect, Layer, Schema, Scope } from "effect";
|
|
3
3
|
declare namespace ActivityStore_d_exports {
|
|
4
4
|
export { ActivityBusy, ActivityMutationFailpoint, ActivityMutationFailure, ActivityMutationPoint, ActivityOwnershipLost, ActivityProcessorKey, ActivityProcessorStore, ActivityProgress, ActivitySession, ActivityStoreError, ActivityStoreFailure, ActivityWorkConflict, PreparedActivity };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { ThreadId } from "../core/Identifiers.mjs";
|
|
3
|
-
import { U as PersistedJson, Z as RecordId, b as Digest, f as CanonicalSequence } from "../Records-
|
|
3
|
+
import { U as PersistedJson, Z as RecordId, b as Digest, f as CanonicalSequence } from "../Records-bbGVHprv.mjs";
|
|
4
4
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
5
5
|
//#region src/durable/ActivityStore.ts
|
|
6
6
|
var ActivityStore_exports = /* @__PURE__ */ __exportAll({
|
package/dist/durable/Admin.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as renderRecoveryExplanation, S as recoveryDecisionMeaning, _ as RetryCommand, a as IntegrityCheck, b as obligationSeverityOf, c as IntegrityReport, d as ObligationReport, f as ObligationSeverity, g as RecoveryExplanation, h as RecoveryDisposition, i as ExplainedUnknownCall, l as ObligationBlockedOn, m as RECOVERY_DECISION_MEANINGS, n as ExplainedEvidence, o as IntegrityCheckName, p as ObligationThresholds, r as ExplainedSubmission, s as IntegrityCheckStatus, u as ObligationEntry, v as RetryRefusalReason, x as predictRecoveryDisposition, y as RetryRefused } from "../Admin-
|
|
1
|
+
import { C as renderRecoveryExplanation, S as recoveryDecisionMeaning, _ as RetryCommand, a as IntegrityCheck, b as obligationSeverityOf, c as IntegrityReport, d as ObligationReport, f as ObligationSeverity, g as RecoveryExplanation, h as RecoveryDisposition, i as ExplainedUnknownCall, l as ObligationBlockedOn, m as RECOVERY_DECISION_MEANINGS, n as ExplainedEvidence, o as IntegrityCheckName, p as ObligationThresholds, r as ExplainedSubmission, s as IntegrityCheckStatus, u as ObligationEntry, v as RetryRefusalReason, x as predictRecoveryDisposition, y as RetryRefused } from "../Admin-BgCHCGSl.mjs";
|
|
2
2
|
export { ExplainedEvidence, ExplainedSubmission, ExplainedUnknownCall, IntegrityCheck, IntegrityCheckName, IntegrityCheckStatus, IntegrityReport, ObligationBlockedOn, ObligationEntry, ObligationReport, ObligationSeverity, ObligationThresholds, RECOVERY_DECISION_MEANINGS, RecoveryDisposition, RecoveryExplanation, RetryCommand, RetryRefusalReason, RetryRefused, obligationSeverityOf, predictRecoveryDisposition, recoveryDecisionMeaning, renderRecoveryExplanation };
|
package/dist/durable/Admin.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { SubmissionId, ThreadId, ToolCallId } from "../core/Identifiers.mjs";
|
|
3
3
|
import { QueueSequence } from "../core/Receipt.mjs";
|
|
4
|
-
import { Tt as ToolCallUnknown, dt as SettlementOutcome, f as CanonicalSequence, g as DeclaredToolCall } from "../Records-
|
|
4
|
+
import { Tt as ToolCallUnknown, dt as SettlementOutcome, f as CanonicalSequence, g as DeclaredToolCall } from "../Records-bbGVHprv.mjs";
|
|
5
5
|
import { AbortCommand, AbortIntent, ApprovalDecisionIntent, ChildAttachmentSnapshot, JoinSnapshot, ParentLinkage, SubmissionState, SuspensionSnapshot, UnknownResolutionIntent } from "./SubmissionLedger.mjs";
|
|
6
6
|
import { OpenDelegationCallEvidence, OpenToolCallEvidence, PendingApprovalEvidence, RecoveryDecision } from "./Recovery.mjs";
|
|
7
7
|
import { DateTime, Effect, Schema } from "effect";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { As as BindingSelection, Bs as definitionDigestsEqual, Fs as ExecutableAgentBinding, Is as ReplayVersions, Ls as ResolvedBinding, Ms as CurrentBindingSelection, Ns as DurableBindingFailure, Os as AgentAttemptContext, Ps as DurableWorkerBinding, Rs as compileBindingContracts, js as BindingUnavailable, ks as AgentRegistration, zs as compileRegistrations } from "../Admin-
|
|
1
|
+
import { As as BindingSelection, Bs as definitionDigestsEqual, Fs as ExecutableAgentBinding, Is as ReplayVersions, Ls as ResolvedBinding, Ms as CurrentBindingSelection, Ns as DurableBindingFailure, Os as AgentAttemptContext, Ps as DurableWorkerBinding, Rs as compileBindingContracts, js as BindingUnavailable, ks as AgentRegistration, zs as compileRegistrations } from "../Admin-BgCHCGSl.mjs";
|
|
2
2
|
export { type AgentAttemptContext, type AgentRegistration, type BindingSelection, BindingUnavailable, CurrentBindingSelection, type DurableBindingFailure, DurableWorkerBinding, type ExecutableAgentBinding, type ReplayVersions, type ResolvedBinding, compileBindingContracts, compileRegistrations, definitionDigestsEqual };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import { a as compileRegistrations, i as compileBindingContracts, n as CurrentBindingSelection, o as definitionDigestsEqual, r as DurableWorkerBinding, t as BindingUnavailable } from "../agent-registration-
|
|
2
|
+
import { a as compileRegistrations, i as compileBindingContracts, n as CurrentBindingSelection, o as definitionDigestsEqual, r as DurableWorkerBinding, t as BindingUnavailable } from "../agent-registration-7kp1dHT0.mjs";
|
|
3
3
|
//#region src/durable/AgentRegistration.ts
|
|
4
4
|
var AgentRegistration_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
BindingUnavailable: () => BindingUnavailable,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Wi as ThreadStore, Wr as SettlementPublisher, bo as StorageOwner, dn as SubmissionLedger } from "../Admin-
|
|
1
|
+
import { Wi as ThreadStore, Wr as SettlementPublisher, bo as StorageOwner, dn as SubmissionLedger } from "../Admin-BgCHCGSl.mjs";
|
|
2
2
|
import { Crypto, Effect, Schema } from "effect";
|
|
3
3
|
//#region src/durable/Certification.d.ts
|
|
4
4
|
declare const CertifiedAdapterIdentity_base: Schema.Class<CertifiedAdapterIdentity, Schema.Struct<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as PersistedJson, d as CanonicalRecordEnvelope, p as CanonicalSequence } from "../Records-
|
|
1
|
+
import { K as PersistedJson, d as CanonicalRecordEnvelope, p as CanonicalSequence } from "../Records-BP67Yz6n.mjs";
|
|
2
2
|
import { ActivityProcessorKey, ActivityProcessorStore, ActivityStoreFailure, PreparedActivity } from "./ActivityStore.mjs";
|
|
3
|
-
import { t as DigestError } from "../Digest-
|
|
4
|
-
import { Ki as ThreadStoreError, Ni as ThreadNotMaterialized, Wi as ThreadStore } from "../Admin-
|
|
3
|
+
import { t as DigestError } from "../Digest-1iVcDLVm.mjs";
|
|
4
|
+
import { Ki as ThreadStoreError, Ni as ThreadNotMaterialized, Wi as ThreadStore } from "../Admin-BgCHCGSl.mjs";
|
|
5
5
|
import { Crypto, Effect, Schema, Scope } from "effect";
|
|
6
6
|
declare namespace CommittedActivity_d_exports {
|
|
7
7
|
export { ActivityPassLimits, ActivityPassResult, ActivityProcessingError, CommittedActivityProcessor, activityWorkId, processCommittedActivity };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import { U as PersistedJson, f as CanonicalSequence, u as CanonicalRecordEnvelope } from "../Records-
|
|
2
|
+
import { U as PersistedJson, f as CanonicalSequence, u as CanonicalRecordEnvelope } from "../Records-bbGVHprv.mjs";
|
|
3
3
|
import { ActivityProcessorKey, ActivityProcessorStore, ActivityProgress, PreparedActivity } from "./ActivityStore.mjs";
|
|
4
|
-
import { s as digestJson } from "../Digest-
|
|
5
|
-
import { $ as ThreadTail, H as ThreadRead, Y as ThreadStore, et as ThreadTailRequest } from "../ThreadStore-
|
|
4
|
+
import { s as digestJson } from "../Digest-CzLJcsWv.mjs";
|
|
5
|
+
import { $ as ThreadTail, H as ThreadRead, Y as ThreadStore, et as ThreadTailRequest } from "../ThreadStore-C_ofHc7h.mjs";
|
|
6
6
|
import { Clock, Effect, Schema, Stream } from "effect";
|
|
7
7
|
//#region src/durable/CommittedActivity.ts
|
|
8
8
|
var CommittedActivity_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as digestDefinition, c as utf8ByteLength, i as digestCanonicalJson, o as digestDefinitions, r as canonicalJson, s as digestJson, t as DigestError } from "../Digest-
|
|
1
|
+
import { a as digestDefinition, c as utf8ByteLength, i as digestCanonicalJson, o as digestDefinitions, r as canonicalJson, s as digestJson, t as DigestError } from "../Digest-1iVcDLVm.mjs";
|
|
2
2
|
export { DigestError, canonicalJson, digestCanonicalJson, digestDefinition, digestDefinitions, digestJson, utf8ByteLength };
|
package/dist/durable/Digest.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as utf8ByteLength } from "../utf8-B5pAmhTo.mjs";
|
|
2
|
-
import { a as digestDefinition, i as digestCanonicalJson, o as digestDefinitions, r as canonicalJson, s as digestJson, t as DigestError } from "../Digest-
|
|
2
|
+
import { a as digestDefinition, i as digestCanonicalJson, o as digestDefinitions, r as canonicalJson, s as digestJson, t as DigestError } from "../Digest-CzLJcsWv.mjs";
|
|
3
3
|
export { DigestError, canonicalJson, digestCanonicalJson, digestDefinition, digestDefinitions, digestJson, utf8ByteLength };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as Receipt } from "../Receipt-BkM21Qiu.mjs";
|
|
2
|
-
import { $n as DurableAwaitFailure, Cr as recoveryRepairBatchId, Er as threadCreatedRecordId, Jn as DurableAgentRuntime, Kn as ApprovalSuspensionError, Qn as DurableApprovalSuspension, Sr as isolateRecovery, Tr as threadCreatedBatchId, Xn as DurableApprovalFailure, Zn as DurableApprovalResolver, _r as RecoverySweepOptions, ar as DurableRetryFailure, br as WorkRecoveryRequest, cr as DurableSubmitAgent, dr as DurableVerifyFailure, er as DurableExplainFailure, fr as DurableWorkerFailure, gr as RecoveryReport, hr as RecoveryFailure, ir as DurableResolveFailure, lr as DurableSubmitFailure, mr as RecoveryBlocked, nr as DurableObserveOptions, or as DurableRuntimeConfig, pr as DurableWorkerRequirements, qn as DurableAbortFailure, rr as DurableProgressFailure, sr as DurableRuntimeConfigOptions, tr as DurableObligationFailure, ur as DurableSubmitOptions, vr as RecoverySweepResult, wr as recoveryRepairRecordId, xr as childReservationIdFor, yr as WorkRecoveryReport } from "../Admin-
|
|
2
|
+
import { $n as DurableAwaitFailure, Cr as recoveryRepairBatchId, Er as threadCreatedRecordId, Jn as DurableAgentRuntime, Kn as ApprovalSuspensionError, Qn as DurableApprovalSuspension, Sr as isolateRecovery, Tr as threadCreatedBatchId, Xn as DurableApprovalFailure, Zn as DurableApprovalResolver, _r as RecoverySweepOptions, ar as DurableRetryFailure, br as WorkRecoveryRequest, cr as DurableSubmitAgent, dr as DurableVerifyFailure, er as DurableExplainFailure, fr as DurableWorkerFailure, gr as RecoveryReport, hr as RecoveryFailure, ir as DurableResolveFailure, lr as DurableSubmitFailure, mr as RecoveryBlocked, nr as DurableObserveOptions, or as DurableRuntimeConfig, pr as DurableWorkerRequirements, qn as DurableAbortFailure, rr as DurableProgressFailure, sr as DurableRuntimeConfigOptions, tr as DurableObligationFailure, ur as DurableSubmitOptions, vr as RecoverySweepResult, wr as recoveryRepairRecordId, xr as childReservationIdFor, yr as WorkRecoveryReport } from "../Admin-BgCHCGSl.mjs";
|
|
3
3
|
export { ApprovalSuspensionError, DurableAbortFailure, DurableAgentRuntime, DurableApprovalFailure, DurableApprovalResolver, DurableApprovalSuspension, DurableAwaitFailure, DurableExplainFailure, DurableObligationFailure, DurableObserveOptions, DurableProgressFailure, DurableResolveFailure, DurableRetryFailure, DurableRuntimeConfig, DurableRuntimeConfigOptions, DurableSubmitAgent, DurableSubmitFailure, DurableSubmitOptions, DurableVerifyFailure, DurableWorkerFailure, DurableWorkerRequirements, Receipt, RecoveryBlocked, RecoveryFailure, RecoveryReport, RecoverySweepOptions, RecoverySweepResult, WorkRecoveryReport, WorkRecoveryRequest, childReservationIdFor, isolateRecovery, recoveryRepairBatchId, recoveryRepairRecordId, threadCreatedBatchId, threadCreatedRecordId };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Receipt } from "../core/Receipt.mjs";
|
|
2
|
-
import { a as DurableApprovalSuspension, c as RecoveryFailure, d as WorkRecoveryReport, f as WorkRecoveryRequest, g as recoveryRepairRecordId, h as recoveryRepairBatchId, i as DurableApprovalResolver, l as RecoveryReport, m as isolateRecovery, n as DurableAgentRuntime, o as DurableRuntimeConfig, p as childReservationIdFor, s as RecoveryBlocked, t as ApprovalSuspensionError, u as RecoverySweepResult } from "../DurableAgentRuntime-
|
|
3
|
-
import { c as threadCreatedBatchId, l as threadCreatedRecordId } from "../WorkerAdmission-
|
|
2
|
+
import { a as DurableApprovalSuspension, c as RecoveryFailure, d as WorkRecoveryReport, f as WorkRecoveryRequest, g as recoveryRepairRecordId, h as recoveryRepairBatchId, i as DurableApprovalResolver, l as RecoveryReport, m as isolateRecovery, n as DurableAgentRuntime, o as DurableRuntimeConfig, p as childReservationIdFor, s as RecoveryBlocked, t as ApprovalSuspensionError, u as RecoverySweepResult } from "../DurableAgentRuntime-Cj263rW9.mjs";
|
|
3
|
+
import { c as threadCreatedBatchId, l as threadCreatedRecordId } from "../WorkerAdmission-9Ka3edXj.mjs";
|
|
4
4
|
export { ApprovalSuspensionError, DurableAgentRuntime, DurableApprovalResolver, DurableApprovalSuspension, DurableRuntimeConfig, Receipt, RecoveryBlocked, RecoveryFailure, RecoveryReport, RecoverySweepResult, WorkRecoveryReport, WorkRecoveryRequest, childReservationIdFor, isolateRecovery, recoveryRepairBatchId, recoveryRepairRecordId, threadCreatedBatchId, threadCreatedRecordId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as makeEventSource, i as NormalizedEvent, r as EventSources, t as EventSource } from "../EventSource-
|
|
1
|
+
import { a as makeEventSource, i as NormalizedEvent, r as EventSources, t as EventSource } from "../EventSource-CaA6RAtC.mjs";
|
|
2
2
|
export { EventSource, EventSources, NormalizedEvent, makeEventSource };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import { U as PersistedJson } from "../Records-
|
|
2
|
+
import { U as PersistedJson } from "../Records-bbGVHprv.mjs";
|
|
3
3
|
import { SubscriptionSourceError } from "./Subscription.mjs";
|
|
4
4
|
import { Context, Effect, Schema } from "effect";
|
|
5
5
|
//#region src/durable/EventSource.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as Principal } from "../Receipt-BkM21Qiu.mjs";
|
|
2
|
-
import "../Admin-
|
|
3
|
-
import { E as SubscriptionSourceError } from "../Subscription-
|
|
4
|
-
import { t as EventSource } from "../EventSource-
|
|
2
|
+
import "../Admin-BgCHCGSl.mjs";
|
|
3
|
+
import { E as SubscriptionSourceError } from "../Subscription-BRsNy0TA.mjs";
|
|
4
|
+
import { t as EventSource } from "../EventSource-CaA6RAtC.mjs";
|
|
5
5
|
import { SubscriptionFailure, SubscriptionIntake } from "./Subscriptions.mjs";
|
|
6
6
|
import { Context, Effect, Layer, Redacted, Schema } from "effect";
|
|
7
7
|
import { HttpClient } from "effect/http";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ao as LifecyclePublication, co as LifecyclePublicationError, do as LifecyclePublicationSource, fo as LifecyclePublicationStorage, go as lifecyclePublicationLayer, ho as lifecyclePublicationBatchMaxFacts, lo as LifecyclePublicationFact, mo as drainLifecyclePublications, oo as LifecyclePublicationBatch, so as LifecyclePublicationConfig, uo as LifecyclePublicationHandler } from "../Admin-
|
|
1
|
+
import { ao as LifecyclePublication, co as LifecyclePublicationError, do as LifecyclePublicationSource, fo as LifecyclePublicationStorage, go as lifecyclePublicationLayer, ho as lifecyclePublicationBatchMaxFacts, lo as LifecyclePublicationFact, mo as drainLifecyclePublications, oo as LifecyclePublicationBatch, so as LifecyclePublicationConfig, uo as LifecyclePublicationHandler } from "../Admin-BgCHCGSl.mjs";
|
|
2
2
|
export { LifecyclePublication, LifecyclePublicationBatch, LifecyclePublicationConfig, LifecyclePublicationError, LifecyclePublicationFact, LifecyclePublicationHandler, LifecyclePublicationSource, LifecyclePublicationStorage, drainLifecyclePublications, lifecyclePublicationBatchMaxFacts, lifecyclePublicationLayer };
|
|
@@ -2,9 +2,9 @@ import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
|
2
2
|
import { SubmissionId, ThreadId } from "../core/Identifiers.mjs";
|
|
3
3
|
import { Receipt } from "../core/Receipt.mjs";
|
|
4
4
|
import { n as AssignmentTerminal } from "../Worker-CtuUwYOK.mjs";
|
|
5
|
-
import { Ft as WorkerInputRequested, Nt as WorkerInputCompleted, Vt as WorkerStopRequested, _t as SubmissionSettledRecord, bt as ToolApprovalDecided, f as CanonicalSequence, ft as SubagentJoined, ht as SubagentStarted, kt as UserInputRecorded, lt as RunStartedRecord, mt as SubagentRequested, n as AgentUpdateEmitted, t as AbortRequested, xt as ToolApprovalRequested } from "../Records-
|
|
5
|
+
import { Ft as WorkerInputRequested, Nt as WorkerInputCompleted, Vt as WorkerStopRequested, _t as SubmissionSettledRecord, bt as ToolApprovalDecided, f as CanonicalSequence, ft as SubagentJoined, ht as SubagentStarted, kt as UserInputRecorded, lt as RunStartedRecord, mt as SubagentRequested, n as AgentUpdateEmitted, t as AbortRequested, xt as ToolApprovalRequested } from "../Records-bbGVHprv.mjs";
|
|
6
6
|
import { AbortIntent, Settlement, SubmissionLedger, SubmissionLookupById, SubmissionSnapshot, SuspensionReason } from "./SubmissionLedger.mjs";
|
|
7
|
-
import { ct as getRunInput } from "../ThreadStore-
|
|
7
|
+
import { ct as getRunInput } from "../ThreadStore-C_ofHc7h.mjs";
|
|
8
8
|
import { PreparedInput } from "./Subscription.mjs";
|
|
9
9
|
import { MessageDeliveryKey } from "./MessageDelivery.mjs";
|
|
10
10
|
import { Cause, Clock, Context, Crypto, Effect, Layer, Option, Schema } from "effect";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as messageDeliveryKeyString, D as readPending, E as prepareMessageDelivery, O as sameMessageDeliveryIdentity, S as messageDeliveryDeadline, T as peerMessageRetentionDeadline, _ as applyMessageDeliveryChange, a as MessageDeliveryError, b as isWorkerUpdateDelivery, c as MessageDeliveryFailure, d as MessageDeliveryPageRequest, f as MessageDeliveryPolicy, h as MessageDeliveryStoreLimits, i as MessageDeliveryDriverLimits, k as validateMessageDelivery, l as MessageDeliveryKey, m as MessageDeliveryStore, n as MessageDeliveryCompletion, o as MessageDeliveryFailpoint, p as MessageDeliveryRecord, r as MessageDeliveryDriver, s as MessageDeliveryFailpointError, t as MessageDeliveryChange, u as MessageDeliveryPage, v as defaultMessageDeliveryPolicy, w as messageDeliveryUsesCapacity, x as messageDeliveryCapacity, y as defaultMessageDeliveryStoreLimits } from "../MessageDelivery-
|
|
1
|
+
import { C as messageDeliveryKeyString, D as readPending, E as prepareMessageDelivery, O as sameMessageDeliveryIdentity, S as messageDeliveryDeadline, T as peerMessageRetentionDeadline, _ as applyMessageDeliveryChange, a as MessageDeliveryError, b as isWorkerUpdateDelivery, c as MessageDeliveryFailure, d as MessageDeliveryPageRequest, f as MessageDeliveryPolicy, h as MessageDeliveryStoreLimits, i as MessageDeliveryDriverLimits, k as validateMessageDelivery, l as MessageDeliveryKey, m as MessageDeliveryStore, n as MessageDeliveryCompletion, o as MessageDeliveryFailpoint, p as MessageDeliveryRecord, r as MessageDeliveryDriver, s as MessageDeliveryFailpointError, t as MessageDeliveryChange, u as MessageDeliveryPage, v as defaultMessageDeliveryPolicy, w as messageDeliveryUsesCapacity, x as messageDeliveryCapacity, y as defaultMessageDeliveryStoreLimits } from "../MessageDelivery-rlLpakO8.mjs";
|
|
2
2
|
export { MessageDeliveryChange, MessageDeliveryCompletion, MessageDeliveryDriver, MessageDeliveryDriverLimits, MessageDeliveryError, MessageDeliveryFailpoint, MessageDeliveryFailpointError, MessageDeliveryFailure, MessageDeliveryKey, MessageDeliveryPage, MessageDeliveryPageRequest, MessageDeliveryPolicy, MessageDeliveryRecord, MessageDeliveryStore, MessageDeliveryStoreLimits, applyMessageDeliveryChange, defaultMessageDeliveryPolicy, defaultMessageDeliveryStoreLimits, isWorkerUpdateDelivery, messageDeliveryCapacity, messageDeliveryDeadline, messageDeliveryKeyString, messageDeliveryUsesCapacity, peerMessageRetentionDeadline, prepareMessageDelivery, readPending, sameMessageDeliveryIdentity, validateMessageDelivery };
|
|
@@ -3,8 +3,8 @@ import { AgentId, DelegationId, ThreadId } from "../core/Identifiers.mjs";
|
|
|
3
3
|
import { IdempotencyKey, Receipt } from "../core/Receipt.mjs";
|
|
4
4
|
import { o as Value, r as Diagnostic, s as capture } from "../FailureDiagnostic-D9oW23Cn.mjs";
|
|
5
5
|
import { b as WorkerUpdate } from "../Worker-CtuUwYOK.mjs";
|
|
6
|
-
import { b as Digest } from "../Records-
|
|
7
|
-
import { s as digestJson } from "../Digest-
|
|
6
|
+
import { b as Digest } from "../Records-bbGVHprv.mjs";
|
|
7
|
+
import { s as digestJson } from "../Digest-CzLJcsWv.mjs";
|
|
8
8
|
import { Settlement } from "./SubmissionLedger.mjs";
|
|
9
9
|
import { ScheduleInstant, ScheduleRetry, ScheduleRetryReason } from "./Schedule.mjs";
|
|
10
10
|
import { PreparedInputAdmission, admitPreparedInput } from "./PreparedInputAdmission.mjs";
|
|
@@ -3,10 +3,10 @@ import { a as Receipt } from "../Receipt-BkM21Qiu.mjs";
|
|
|
3
3
|
import { r as Update } from "../AgentUpdates-DksV4D0A.mjs";
|
|
4
4
|
import { r as Diagnostic } from "../FailureDiagnostic-DvHruCSJ.mjs";
|
|
5
5
|
import { t as AgentPolicy } from "../AgentPolicy-B4lbCU2T.mjs";
|
|
6
|
-
import { b as DefinitionDigests } from "../Records-
|
|
7
|
-
import { t as DigestError } from "../Digest-
|
|
8
|
-
import { sn as Settlement } from "../Admin-
|
|
9
|
-
import { a as MessageDeliveryError, c as MessageDeliveryFailure, m as MessageDeliveryStore } from "../MessageDelivery-
|
|
6
|
+
import { b as DefinitionDigests } from "../Records-BP67Yz6n.mjs";
|
|
7
|
+
import { t as DigestError } from "../Digest-1iVcDLVm.mjs";
|
|
8
|
+
import { sn as Settlement } from "../Admin-BgCHCGSl.mjs";
|
|
9
|
+
import { a as MessageDeliveryError, c as MessageDeliveryFailure, m as MessageDeliveryStore } from "../MessageDelivery-rlLpakO8.mjs";
|
|
10
10
|
import { Effect, Schema } from "effect";
|
|
11
11
|
//#region src/durable/MessageDeliveryStoreConformance.d.ts
|
|
12
12
|
declare const MessageDeliveryConformanceViolation_base: Schema.Class<MessageDeliveryConformanceViolation, Schema.TaggedStruct<"MessageDeliveryConformanceViolation", {
|
|
@@ -106,6 +106,25 @@ export declare const makeMessageDeliveryFixture: (messageId?: any, owner?: any,
|
|
|
106
106
|
readonly reportKind?: "update" | undefined;
|
|
107
107
|
} | undefined;
|
|
108
108
|
readonly messageAdmission?: {
|
|
109
|
+
readonly schemaVersion: 1;
|
|
110
|
+
readonly message: {
|
|
111
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
112
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
113
|
+
};
|
|
114
|
+
readonly peerName: string;
|
|
115
|
+
readonly sender: {
|
|
116
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
117
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
118
|
+
};
|
|
119
|
+
readonly returnAddress: {
|
|
120
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
121
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
122
|
+
};
|
|
123
|
+
readonly inReplyTo?: {
|
|
124
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
125
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
126
|
+
} | undefined;
|
|
127
|
+
} | {
|
|
109
128
|
readonly _tag: "WorkerCompletion";
|
|
110
129
|
readonly budgetExhausted: boolean;
|
|
111
130
|
readonly schemaVersion: 1;
|
|
@@ -146,25 +165,6 @@ export declare const makeMessageDeliveryFixture: (messageId?: any, owner?: any,
|
|
|
146
165
|
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
147
166
|
};
|
|
148
167
|
readonly update: Update;
|
|
149
|
-
} | {
|
|
150
|
-
readonly schemaVersion: 1;
|
|
151
|
-
readonly message: {
|
|
152
|
-
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
153
|
-
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
154
|
-
};
|
|
155
|
-
readonly peerName: string;
|
|
156
|
-
readonly sender: {
|
|
157
|
-
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
158
|
-
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
159
|
-
};
|
|
160
|
-
readonly returnAddress: {
|
|
161
|
-
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
162
|
-
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
163
|
-
};
|
|
164
|
-
readonly inReplyTo?: {
|
|
165
|
-
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
166
|
-
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
167
|
-
} | undefined;
|
|
168
168
|
} | undefined;
|
|
169
169
|
};
|
|
170
170
|
readonly envelopeDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
|
|
@@ -290,6 +290,25 @@ export declare const makeWorkerUpdateDeliveryFixture: (id: string) => Effect.Eff
|
|
|
290
290
|
readonly reportKind?: "update" | undefined;
|
|
291
291
|
} | undefined;
|
|
292
292
|
readonly messageAdmission?: {
|
|
293
|
+
readonly schemaVersion: 1;
|
|
294
|
+
readonly message: {
|
|
295
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
296
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
297
|
+
};
|
|
298
|
+
readonly peerName: string;
|
|
299
|
+
readonly sender: {
|
|
300
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
301
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
302
|
+
};
|
|
303
|
+
readonly returnAddress: {
|
|
304
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
305
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
306
|
+
};
|
|
307
|
+
readonly inReplyTo?: {
|
|
308
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
309
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
310
|
+
} | undefined;
|
|
311
|
+
} | {
|
|
293
312
|
readonly _tag: "WorkerCompletion";
|
|
294
313
|
readonly budgetExhausted: boolean;
|
|
295
314
|
readonly schemaVersion: 1;
|
|
@@ -330,25 +349,6 @@ export declare const makeWorkerUpdateDeliveryFixture: (id: string) => Effect.Eff
|
|
|
330
349
|
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
331
350
|
};
|
|
332
351
|
readonly update: Update;
|
|
333
|
-
} | {
|
|
334
|
-
readonly schemaVersion: 1;
|
|
335
|
-
readonly message: {
|
|
336
|
-
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
337
|
-
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
338
|
-
};
|
|
339
|
-
readonly peerName: string;
|
|
340
|
-
readonly sender: {
|
|
341
|
-
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
342
|
-
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
343
|
-
};
|
|
344
|
-
readonly returnAddress: {
|
|
345
|
-
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
346
|
-
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
347
|
-
};
|
|
348
|
-
readonly inReplyTo?: {
|
|
349
|
-
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
350
|
-
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
351
|
-
} | undefined;
|
|
352
352
|
} | undefined;
|
|
353
353
|
};
|
|
354
354
|
readonly envelopeDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
|
|
@@ -2,8 +2,8 @@ import { AgentId, DelegationId, ReceiptId, RunId, SettlementId, SubmissionId, Th
|
|
|
2
2
|
import { IdempotencyKey, Principal, QueueSequence, Receipt } from "../core/Receipt.mjs";
|
|
3
3
|
import { Update } from "../core/AgentUpdates.mjs";
|
|
4
4
|
import { b as WorkerUpdate } from "../Worker-CtuUwYOK.mjs";
|
|
5
|
-
import { b as Digest, v as DefinitionDigests } from "../Records-
|
|
6
|
-
import { s as digestJson } from "../Digest-
|
|
5
|
+
import { b as Digest, v as DefinitionDigests } from "../Records-bbGVHprv.mjs";
|
|
6
|
+
import { s as digestJson } from "../Digest-CzLJcsWv.mjs";
|
|
7
7
|
import { Settlement } from "./SubmissionLedger.mjs";
|
|
8
8
|
import { MessageDeliveryStore, messageDeliveryCapacity, prepareMessageDelivery, readPending } from "./MessageDelivery.mjs";
|
|
9
9
|
import { DateTime, Effect, Equal, Result, Schema } from "effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ThreadHistory } from "../ThreadHistory-
|
|
2
|
-
import { Wi as ThreadStore, bo as StorageOwner } from "../Admin-
|
|
1
|
+
import { t as ThreadHistory } from "../ThreadHistory-ajQhqZDY.mjs";
|
|
2
|
+
import { Wi as ThreadStore, bo as StorageOwner } from "../Admin-BgCHCGSl.mjs";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
4
|
declare namespace PersistentHistory_d_exports {
|
|
5
5
|
export { layer };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { ThreadHistory, ThreadHistoryError } from "../engine/ThreadHistory.mjs";
|
|
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-
|
|
4
|
-
import { v as promptFromCanonicalRecords } from "../RunJournal-
|
|
5
|
-
import { I as ThreadIdentityRequest, L as ThreadMaterialization, Y as ThreadStore, n as AppendRequest, x as SelectedThreadRead } from "../ThreadStore-
|
|
6
|
-
import { s as StorageOwner } from "../RunStorage-
|
|
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-bbGVHprv.mjs";
|
|
4
|
+
import { v as promptFromCanonicalRecords } from "../RunJournal-DQr2dUgg.mjs";
|
|
5
|
+
import { I as ThreadIdentityRequest, L as ThreadMaterialization, Y as ThreadStore, n as AppendRequest, x as SelectedThreadRead } from "../ThreadStore-C_ofHc7h.mjs";
|
|
6
|
+
import { s as StorageOwner } from "../RunStorage-DblN-cmM.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-DjbWz2lW.mjs";
|
|
2
2
|
export { PreparedInputAdmission, admitPreparedInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ReadRecord, c as decodeExportRecord, i as ReadEnvelope, l as decodeExportRecordJson, n as ExportRecord, o as RecordFormatError, r as ExportedRecord, t as ExportBatch } from "../RecordFormat-
|
|
1
|
+
import { a as ReadRecord, c as decodeExportRecord, i as ReadEnvelope, l as decodeExportRecordJson, n as ExportRecord, o as RecordFormatError, r as ExportedRecord, t as ExportBatch } from "../RecordFormat-CjMl0uu8.mjs";
|
|
2
2
|
export { ExportBatch, ExportRecord, ExportedRecord, ReadEnvelope, ReadRecord, RecordFormatError, decodeExportRecord, decodeExportRecordJson };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import { Q as RecordJson, X as RecordEnvelope, c as CanonicalBatch, u as CanonicalRecordEnvelope } from "../Records-
|
|
2
|
+
import { Q as RecordJson, X as RecordEnvelope, c as CanonicalBatch, u as CanonicalRecordEnvelope } from "../Records-bbGVHprv.mjs";
|
|
3
3
|
import { Effect, Schema, SchemaGetter, SchemaIssue } from "effect";
|
|
4
4
|
//#region src/durable/RecordFormat.ts
|
|
5
5
|
var RecordFormat_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as RecordEnvelope, A as MAX_PERSISTED_JSON_NODES, At as ToolStepSettled, B as ModelCompleted, Bt as WorkerOriginRecorded, C as EvidenceReference, Ct as ToolApprovalDecided, D as MAX_PERSISTED_JSON_BYTES, Dt as ToolCallSettled, E as MAX_CANONICAL_RECORD_BYTES, Et as ToolCallResolved, F as MAX_RUN_RECOVERY_SUFFIX_RECORDS, Ft as WorkerContinuation, G as PeerMessagePrepared, H as ModelResponseRecorded, Ht as WorkerReportRefused, I as MAX_RUN_TERMINAL_BYTES, It as WorkerInputCompleted, J as PromptRecord, K as PersistedJson, L as MAX_RUN_TOOL_CALL_IDENTITIES, Lt as WorkerInputRefused, M as MAX_RUN_EVIDENCE_BYTES, Mt as UserInputRecorded, N as MAX_RUN_EVIDENCE_RECORDS, Nt as WorkHandoffCompleted, O as MAX_PERSISTED_JSON_COLLECTION_LENGTH, Ot as ToolCallUnknown, P as MAX_RUN_RECOVERY_SUFFIX_BYTES, Pt as WorkerAdmission, Q as RUN_TERMINAL_RESERVE_RECORDS, R as MAX_TURN_CANONICAL_BYTES, Rt as WorkerInputRequested, S as Digest, St as ThreadCreated, T as KnownRecordPayload, Tt as ToolCallResolution, U as ObservationOffset, Ut as WorkerReportingIntent, V as ModelResponseInterrupted, Vt as WorkerReportPrepared, W as PROMPT_EVIDENCE_TAGS, Wt as WorkerStopRequested, X as PromptRecordPayload, Y as PromptRecordEnvelope, Z as RUN_TERMINAL_RESERVE_BYTES, _ as ContinuationAccounting, _t as SubagentRequested, a as BatchId, at as RunCompleted, b as DefinitionDigests, bt as SubmissionSettledRecord, c as CURRENT_RECORD_VERSION, ct as RunDurationExhausted, d as CanonicalRecordEnvelope, dt as RunPosition, et as RecordId, f as CanonicalRecordPayload, ft as RunStartedRecord, g as ContextEvidenceReference, gt as SubagentLineageRecorded, h as CompletedSubmissionSettled, ht as SubagentJoined, i as ApprovalDecision, it as ReplayContract, j as MAX_RUN_CONTINUATION_BYTES, jt as ToolUnavailable, k as MAX_PERSISTED_JSON_DEPTH, kt as ToolOperation, l as CanonicalBatch, lt as RunFailed, m as CompactionCreated, mt as SettlementOutcome, n as AbortedSubmissionSettled, o as CURRENT_CANONICAL_SCHEMA_VERSION, ot as RunContextRecorded, p as CanonicalSequence, pt as SettlementFailureDiagnostic, q as ProducerId, r as AgentUpdateEmitted, rt as RepairAnnotated, s as CURRENT_RECORD_FORMAT, st as RunContinuation, t as AbortRequested, tt as RecordJson, u as CanonicalRecord, ut as RunPolicyUsageReserved, v as DeclaredToolCall, vt as SubagentStarted, w as FailedSubmissionSettled, wt as ToolApprovalRequested, x as DeploymentId, xt as SubtreeBudgetReserved, y as DefinitionDigestInput, yt as SubmissionSettled, z as ModelCallAborted, zt as WorkerOrigin } from "../Records-
|
|
1
|
+
import { $ as RecordEnvelope, A as MAX_PERSISTED_JSON_NODES, At as ToolStepSettled, B as ModelCompleted, Bt as WorkerOriginRecorded, C as EvidenceReference, Ct as ToolApprovalDecided, D as MAX_PERSISTED_JSON_BYTES, Dt as ToolCallSettled, E as MAX_CANONICAL_RECORD_BYTES, Et as ToolCallResolved, F as MAX_RUN_RECOVERY_SUFFIX_RECORDS, Ft as WorkerContinuation, G as PeerMessagePrepared, H as ModelResponseRecorded, Ht as WorkerReportRefused, I as MAX_RUN_TERMINAL_BYTES, It as WorkerInputCompleted, J as PromptRecord, K as PersistedJson, L as MAX_RUN_TOOL_CALL_IDENTITIES, Lt as WorkerInputRefused, M as MAX_RUN_EVIDENCE_BYTES, Mt as UserInputRecorded, N as MAX_RUN_EVIDENCE_RECORDS, Nt as WorkHandoffCompleted, O as MAX_PERSISTED_JSON_COLLECTION_LENGTH, Ot as ToolCallUnknown, P as MAX_RUN_RECOVERY_SUFFIX_BYTES, Pt as WorkerAdmission, Q as RUN_TERMINAL_RESERVE_RECORDS, R as MAX_TURN_CANONICAL_BYTES, Rt as WorkerInputRequested, S as Digest, St as ThreadCreated, T as KnownRecordPayload, Tt as ToolCallResolution, U as ObservationOffset, Ut as WorkerReportingIntent, V as ModelResponseInterrupted, Vt as WorkerReportPrepared, W as PROMPT_EVIDENCE_TAGS, Wt as WorkerStopRequested, X as PromptRecordPayload, Y as PromptRecordEnvelope, Z as RUN_TERMINAL_RESERVE_BYTES, _ as ContinuationAccounting, _t as SubagentRequested, a as BatchId, at as RunCompleted, b as DefinitionDigests, bt as SubmissionSettledRecord, c as CURRENT_RECORD_VERSION, ct as RunDurationExhausted, d as CanonicalRecordEnvelope, dt as RunPosition, et as RecordId, f as CanonicalRecordPayload, ft as RunStartedRecord, g as ContextEvidenceReference, gt as SubagentLineageRecorded, h as CompletedSubmissionSettled, ht as SubagentJoined, i as ApprovalDecision, it as ReplayContract, j as MAX_RUN_CONTINUATION_BYTES, jt as ToolUnavailable, k as MAX_PERSISTED_JSON_DEPTH, kt as ToolOperation, l as CanonicalBatch, lt as RunFailed, m as CompactionCreated, mt as SettlementOutcome, n as AbortedSubmissionSettled, o as CURRENT_CANONICAL_SCHEMA_VERSION, ot as RunContextRecorded, p as CanonicalSequence, pt as SettlementFailureDiagnostic, q as ProducerId, r as AgentUpdateEmitted, rt as RepairAnnotated, s as CURRENT_RECORD_FORMAT, st as RunContinuation, t as AbortRequested, tt as RecordJson, u as CanonicalRecord, ut as RunPolicyUsageReserved, v as DeclaredToolCall, vt as SubagentStarted, w as FailedSubmissionSettled, wt as ToolApprovalRequested, x as DeploymentId, xt as SubtreeBudgetReserved, y as DefinitionDigestInput, yt as SubmissionSettled, z as ModelCallAborted, zt as WorkerOrigin } from "../Records-BP67Yz6n.mjs";
|
|
2
2
|
export { AbortRequested, AbortedSubmissionSettled, AgentUpdateEmitted, ApprovalDecision, BatchId, CURRENT_CANONICAL_SCHEMA_VERSION, CURRENT_RECORD_FORMAT, CURRENT_RECORD_VERSION, CanonicalBatch, CanonicalRecord, CanonicalRecordEnvelope, CanonicalRecordPayload, CanonicalSequence, CompactionCreated, CompletedSubmissionSettled, ContextEvidenceReference, ContinuationAccounting, DeclaredToolCall, DefinitionDigestInput, DefinitionDigests, DeploymentId, Digest, EvidenceReference, FailedSubmissionSettled, KnownRecordPayload, MAX_CANONICAL_RECORD_BYTES, MAX_PERSISTED_JSON_BYTES, MAX_PERSISTED_JSON_COLLECTION_LENGTH, MAX_PERSISTED_JSON_DEPTH, MAX_PERSISTED_JSON_NODES, MAX_RUN_CONTINUATION_BYTES, MAX_RUN_EVIDENCE_BYTES, MAX_RUN_EVIDENCE_RECORDS, MAX_RUN_RECOVERY_SUFFIX_BYTES, MAX_RUN_RECOVERY_SUFFIX_RECORDS, MAX_RUN_TERMINAL_BYTES, MAX_RUN_TOOL_CALL_IDENTITIES, MAX_TURN_CANONICAL_BYTES, ModelCallAborted, ModelCompleted, ModelResponseInterrupted, ModelResponseRecorded, ObservationOffset, PROMPT_EVIDENCE_TAGS, PeerMessagePrepared, PersistedJson, ProducerId, PromptRecord, PromptRecordEnvelope, PromptRecordPayload, RUN_TERMINAL_RESERVE_BYTES, RUN_TERMINAL_RESERVE_RECORDS, RecordEnvelope, RecordId, RecordJson, RepairAnnotated, ReplayContract, RunCompleted, RunContextRecorded, RunContinuation, RunDurationExhausted, RunFailed, RunPolicyUsageReserved, RunPosition, RunStartedRecord, SettlementFailureDiagnostic, SettlementOutcome, SubagentJoined, SubagentLineageRecorded, SubagentRequested, SubagentStarted, SubmissionSettled, SubmissionSettledRecord, SubtreeBudgetReserved, ThreadCreated, ToolApprovalDecided, ToolApprovalRequested, ToolCallResolution, ToolCallResolved, ToolCallSettled, ToolCallUnknown, ToolOperation, ToolStepSettled, ToolUnavailable, UserInputRecorded, WorkHandoffCompleted, WorkerAdmission, WorkerContinuation, WorkerInputCompleted, WorkerInputRefused, WorkerInputRequested, WorkerOrigin, WorkerOriginRecorded, WorkerReportPrepared, WorkerReportRefused, WorkerReportingIntent, WorkerStopRequested };
|
package/dist/durable/Records.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as MAX_RUN_EVIDENCE_RECORDS, At as WorkHandoffCompleted, B as ObservationOffset, Bt as WorkerReportingIntent, C as MAX_CANONICAL_RECORD_BYTES, Ct as ToolCallResolved, D as MAX_PERSISTED_JSON_NODES, Dt as ToolStepSettled, E as MAX_PERSISTED_JSON_DEPTH, Et as ToolOperation, F as MAX_TURN_CANONICAL_BYTES, Ft as WorkerInputRequested, G as PromptRecord, H as PeerMessagePrepared, I as ModelCallAborted, It as WorkerOrigin, J as RUN_TERMINAL_RESERVE_BYTES, K as PromptRecordEnvelope, L as ModelCompleted, Lt as WorkerOriginRecorded, M as MAX_RUN_RECOVERY_SUFFIX_RECORDS, Mt as WorkerContinuation, N as MAX_RUN_TERMINAL_BYTES, Nt as WorkerInputCompleted, O as MAX_RUN_CONTINUATION_BYTES, Ot as ToolUnavailable, P as MAX_RUN_TOOL_CALL_IDENTITIES, Pt as WorkerInputRefused, Q as RecordJson, R as ModelResponseInterrupted, Rt as WorkerReportPrepared, S as KnownRecordPayload, St as ToolCallResolution, T as MAX_PERSISTED_JSON_COLLECTION_LENGTH, Tt as ToolCallUnknown, U as PersistedJson, V as PROMPT_EVIDENCE_TAGS, Vt as WorkerStopRequested, W as ProducerId, X as RecordEnvelope, Y as RUN_TERMINAL_RESERVE_RECORDS, Z as RecordId, _ as DefinitionDigestInput, _t as SubmissionSettledRecord, a as CURRENT_CANONICAL_SCHEMA_VERSION, at as RunDurationExhausted, b as Digest, bt as ToolApprovalDecided, c as CanonicalBatch, ct as RunPosition, d as CanonicalRecordPayload, dt as SettlementOutcome, et as RepairAnnotated, f as CanonicalSequence, ft as SubagentJoined, g as DeclaredToolCall, gt as SubmissionSettled, h as ContinuationAccounting, ht as SubagentStarted, i as BatchId, it as RunContinuation, j as MAX_RUN_RECOVERY_SUFFIX_BYTES, jt as WorkerAdmission, k as MAX_RUN_EVIDENCE_BYTES, kt as UserInputRecorded, l as CanonicalRecord, lt as RunStartedRecord, m as ContextEvidenceReference, mt as SubagentRequested, n as AgentUpdateEmitted, nt as RunCompleted, o as CURRENT_RECORD_FORMAT, ot as RunFailed, p as CompactionCreated, pt as SubagentLineageRecorded, q as PromptRecordPayload, r as ApprovalDecision, rt as RunContextRecorded, s as CURRENT_RECORD_VERSION, st as RunPolicyUsageReserved, t as AbortRequested, tt as ReplayContract, u as CanonicalRecordEnvelope, ut as SettlementFailureDiagnostic, v as DefinitionDigests, vt as SubtreeBudgetReserved, w as MAX_PERSISTED_JSON_BYTES, wt as ToolCallSettled, x as EvidenceReference, xt as ToolApprovalRequested, y as DeploymentId, yt as ThreadCreated, z as ModelResponseRecorded, zt as WorkerReportRefused } from "../Records-
|
|
1
|
+
import { A as MAX_RUN_EVIDENCE_RECORDS, At as WorkHandoffCompleted, B as ObservationOffset, Bt as WorkerReportingIntent, C as MAX_CANONICAL_RECORD_BYTES, Ct as ToolCallResolved, D as MAX_PERSISTED_JSON_NODES, Dt as ToolStepSettled, E as MAX_PERSISTED_JSON_DEPTH, Et as ToolOperation, F as MAX_TURN_CANONICAL_BYTES, Ft as WorkerInputRequested, G as PromptRecord, H as PeerMessagePrepared, I as ModelCallAborted, It as WorkerOrigin, J as RUN_TERMINAL_RESERVE_BYTES, K as PromptRecordEnvelope, L as ModelCompleted, Lt as WorkerOriginRecorded, M as MAX_RUN_RECOVERY_SUFFIX_RECORDS, Mt as WorkerContinuation, N as MAX_RUN_TERMINAL_BYTES, Nt as WorkerInputCompleted, O as MAX_RUN_CONTINUATION_BYTES, Ot as ToolUnavailable, P as MAX_RUN_TOOL_CALL_IDENTITIES, Pt as WorkerInputRefused, Q as RecordJson, R as ModelResponseInterrupted, Rt as WorkerReportPrepared, S as KnownRecordPayload, St as ToolCallResolution, T as MAX_PERSISTED_JSON_COLLECTION_LENGTH, Tt as ToolCallUnknown, U as PersistedJson, V as PROMPT_EVIDENCE_TAGS, Vt as WorkerStopRequested, W as ProducerId, X as RecordEnvelope, Y as RUN_TERMINAL_RESERVE_RECORDS, Z as RecordId, _ as DefinitionDigestInput, _t as SubmissionSettledRecord, a as CURRENT_CANONICAL_SCHEMA_VERSION, at as RunDurationExhausted, b as Digest, bt as ToolApprovalDecided, c as CanonicalBatch, ct as RunPosition, d as CanonicalRecordPayload, dt as SettlementOutcome, et as RepairAnnotated, f as CanonicalSequence, ft as SubagentJoined, g as DeclaredToolCall, gt as SubmissionSettled, h as ContinuationAccounting, ht as SubagentStarted, i as BatchId, it as RunContinuation, j as MAX_RUN_RECOVERY_SUFFIX_BYTES, jt as WorkerAdmission, k as MAX_RUN_EVIDENCE_BYTES, kt as UserInputRecorded, l as CanonicalRecord, lt as RunStartedRecord, m as ContextEvidenceReference, mt as SubagentRequested, n as AgentUpdateEmitted, nt as RunCompleted, o as CURRENT_RECORD_FORMAT, ot as RunFailed, p as CompactionCreated, pt as SubagentLineageRecorded, q as PromptRecordPayload, r as ApprovalDecision, rt as RunContextRecorded, s as CURRENT_RECORD_VERSION, st as RunPolicyUsageReserved, t as AbortRequested, tt as ReplayContract, u as CanonicalRecordEnvelope, ut as SettlementFailureDiagnostic, v as DefinitionDigests, vt as SubtreeBudgetReserved, w as MAX_PERSISTED_JSON_BYTES, wt as ToolCallSettled, x as EvidenceReference, xt as ToolApprovalRequested, y as DeploymentId, yt as ThreadCreated, z as ModelResponseRecorded, zt as WorkerReportRefused } from "../Records-bbGVHprv.mjs";
|
|
2
2
|
export { AbortRequested, AgentUpdateEmitted, ApprovalDecision, BatchId, CURRENT_CANONICAL_SCHEMA_VERSION, CURRENT_RECORD_FORMAT, CURRENT_RECORD_VERSION, CanonicalBatch, CanonicalRecord, CanonicalRecordEnvelope, CanonicalRecordPayload, CanonicalSequence, CompactionCreated, ContextEvidenceReference, ContinuationAccounting, DeclaredToolCall, DefinitionDigestInput, DefinitionDigests, DeploymentId, Digest, EvidenceReference, KnownRecordPayload, MAX_CANONICAL_RECORD_BYTES, MAX_PERSISTED_JSON_BYTES, MAX_PERSISTED_JSON_COLLECTION_LENGTH, MAX_PERSISTED_JSON_DEPTH, MAX_PERSISTED_JSON_NODES, MAX_RUN_CONTINUATION_BYTES, MAX_RUN_EVIDENCE_BYTES, MAX_RUN_EVIDENCE_RECORDS, MAX_RUN_RECOVERY_SUFFIX_BYTES, MAX_RUN_RECOVERY_SUFFIX_RECORDS, MAX_RUN_TERMINAL_BYTES, MAX_RUN_TOOL_CALL_IDENTITIES, MAX_TURN_CANONICAL_BYTES, ModelCallAborted, ModelCompleted, ModelResponseInterrupted, ModelResponseRecorded, ObservationOffset, PROMPT_EVIDENCE_TAGS, PeerMessagePrepared, PersistedJson, ProducerId, PromptRecord, PromptRecordEnvelope, PromptRecordPayload, RUN_TERMINAL_RESERVE_BYTES, RUN_TERMINAL_RESERVE_RECORDS, RecordEnvelope, RecordId, RecordJson, RepairAnnotated, ReplayContract, RunCompleted, RunContextRecorded, RunContinuation, RunDurationExhausted, RunFailed, RunPolicyUsageReserved, RunPosition, RunStartedRecord, SettlementFailureDiagnostic, SettlementOutcome, SubagentJoined, SubagentLineageRecorded, SubagentRequested, SubagentStarted, SubmissionSettled, SubmissionSettledRecord, SubtreeBudgetReserved, ThreadCreated, ToolApprovalDecided, ToolApprovalRequested, ToolCallResolution, ToolCallResolved, ToolCallSettled, ToolCallUnknown, ToolOperation, ToolStepSettled, ToolUnavailable, UserInputRecorded, WorkHandoffCompleted, WorkerAdmission, WorkerContinuation, WorkerInputCompleted, WorkerInputRefused, WorkerInputRequested, WorkerOrigin, WorkerOriginRecorded, WorkerReportPrepared, WorkerReportRefused, WorkerReportingIntent, WorkerStopRequested };
|
|
@@ -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-BgCHCGSl.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,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { SettlementId, SubmissionId, ThreadId, ToolCallId } from "../core/Identifiers.mjs";
|
|
3
|
-
import { dt as SettlementOutcome, g as DeclaredToolCall, r as ApprovalDecision } from "../Records-
|
|
3
|
+
import { dt as SettlementOutcome, g as DeclaredToolCall, r as ApprovalDecision } from "../Records-bbGVHprv.mjs";
|
|
4
4
|
import { ChildReservationId, WaitingChild, submissionSettlementId } from "./SubmissionLedger.mjs";
|
|
5
5
|
import { Effect, Schema } from "effect";
|
|
6
6
|
//#region src/durable/Recovery.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as EvidenceReference, ot as RunContextRecorded, st as RunContinuation } from "../Records-
|
|
2
|
-
import { _o as ProgressAppendRecord } from "../Admin-
|
|
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-
|
|
1
|
+
import { C as EvidenceReference, ot as RunContextRecorded, st as RunContinuation } from "../Records-BP67Yz6n.mjs";
|
|
2
|
+
import { _o as ProgressAppendRecord } from "../Admin-BgCHCGSl.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-CIJRN_vC.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
|
-
import { it as RunContinuation, rt as RunContextRecorded, x as EvidenceReference } from "../Records-
|
|
2
|
-
import { _t as executionRunIds, bt as isWorkHandoff, gt as canonicalRunIds, vt as isPreContinuationFact, xt as terminalUsageCharge } from "../ThreadStore-
|
|
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-
|
|
1
|
+
import { it as RunContinuation, rt as RunContextRecorded, x as EvidenceReference } from "../Records-bbGVHprv.mjs";
|
|
2
|
+
import { _t as executionRunIds, bt as isWorkHandoff, gt as canonicalRunIds, vt as isPreContinuationFact, xt as terminalUsageCharge } from "../ThreadStore-C_ofHc7h.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-DJ6kkbQG.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 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-
|
|
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-BgCHCGSl.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 { A as subagentRequestedRecordId, B as toolStepSettledRecordId, C as runStartedBatchId, D as subagentLineageBatchId, E as subagentJoinedRecordId, F as toolCallResolutionBatchId, G as turnResponseBatch, H as turnBatchId, I as toolCallResolvedRecordId, J as turnResultsBatchId, K as turnResponseBatchId, L as toolCallResultBatchId, M as subagentStartedRecordId, N as toolApprovalDecisionRecordId, O as subagentLineageRecordId, P as toolApprovalRequestRecordId, R as toolCallUnknownRecordId, S as runIdForSubmission, T as subagentJoinBatchId, U as turnCanonicalBatch, V as turnApprovalsBatchId, W as turnIdForRun, X as workerOriginRecordId, Y as workerInputRecordId, Z as workerReportRecordId, _ as projectRunJournalStream, a as childIdempotencyKeyFor, b as runDurationBatchId, c as compactionRecordId, d as markUnknownBatchId, et as toolCallSettledRecordId, f as modelResponseInterruptedBatchId, g as projectRunJournal, h as peerMessageRecordId, i as approvalDecisionBatchId, j as subagentStartedBatchId, k as subagentRequestedBatchId, l as firstWorkerInputRecordId, m as modelResponseRecordId, o as childThreadIdFor, p as modelResponseInterruptedRecordId, q as turnResultsBatch, r as agentUpdateRecordId, s as compactionBatchId, t as RunJournalError, u as initialRunJournal, v as promptFromCanonicalRecords, w as runStartedRecordId, x as runDurationRecordId, y as runCompletedRecordId, z as toolStepSettledBatchId } from "../RunJournal-
|
|
1
|
+
import { A as subagentRequestedRecordId, B as toolStepSettledRecordId, C as runStartedBatchId, D as subagentLineageBatchId, E as subagentJoinedRecordId, F as toolCallResolutionBatchId, G as turnResponseBatch, H as turnBatchId, I as toolCallResolvedRecordId, J as turnResultsBatchId, K as turnResponseBatchId, L as toolCallResultBatchId, M as subagentStartedRecordId, N as toolApprovalDecisionRecordId, O as subagentLineageRecordId, P as toolApprovalRequestRecordId, R as toolCallUnknownRecordId, S as runIdForSubmission, T as subagentJoinBatchId, U as turnCanonicalBatch, V as turnApprovalsBatchId, W as turnIdForRun, X as workerOriginRecordId, Y as workerInputRecordId, Z as workerReportRecordId, _ as projectRunJournalStream, a as childIdempotencyKeyFor, b as runDurationBatchId, c as compactionRecordId, d as markUnknownBatchId, et as toolCallSettledRecordId, f as modelResponseInterruptedBatchId, g as projectRunJournal, h as peerMessageRecordId, i as approvalDecisionBatchId, j as subagentStartedBatchId, k as subagentRequestedBatchId, l as firstWorkerInputRecordId, m as modelResponseRecordId, o as childThreadIdFor, p as modelResponseInterruptedRecordId, q as turnResultsBatch, r as agentUpdateRecordId, s as compactionBatchId, t as RunJournalError, u as initialRunJournal, v as promptFromCanonicalRecords, w as runStartedRecordId, x as runDurationRecordId, y as runCompletedRecordId, z as toolStepSettledBatchId } from "../RunJournal-DQr2dUgg.mjs";
|
|
2
2
|
export { RunJournalError, 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, So as makeStorageOwner, bo as StorageOwner, jr as RunChildAttachment, vo as MutationGate, xo as StorageOwnerService, yo as OwnerGeneration, zr as makeRunWriter } from "../Admin-
|
|
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-BgCHCGSl.mjs";
|
|
2
2
|
export { type MutationGate, type OwnerGeneration, RunChildAttachment, RunChildBudgetReservation, RunOwnership, RunStorage, RunStorageSession, RunWriter, StorageOwner, type StorageOwnerService, layer, make, makeRunWriter, makeStorageOwner };
|