effect-agent 0.1.0-beta.103 → 0.1.0-beta.106
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/{Agent-CM6JubNX.d.mts → Agent-Bk-mLtov.d.mts} +2 -2
- package/dist/{AgentError-CggcAQ7V.d.mts → AgentError-Bn1ytXRD.d.mts} +20 -4
- package/dist/{AgentRuntime-B1SXMVN7.d.mts → AgentRuntime-BEXToYl1.d.mts} +8 -8
- package/dist/{AgentRuntime-BWOnNc0d.mjs → AgentRuntime-e2M5UoXn.mjs} +4 -3
- package/dist/AgentRuntime-e2M5UoXn.mjs.map +1 -0
- package/dist/{DurableAgentRuntime-C9eRZS9N.mjs → DurableAgentRuntime-wd1x0TcB.mjs} +67 -36
- package/dist/DurableAgentRuntime-wd1x0TcB.mjs.map +1 -0
- package/dist/{EventSource-K7XUzurY.d.mts → EventSource-pH-v0k42.d.mts} +3 -3
- package/dist/FailureDiagnostic-BElLOoED.mjs +274 -0
- package/dist/FailureDiagnostic-BElLOoED.mjs.map +1 -0
- package/dist/FailureDiagnostic-CaAkzGHL.d.mts +223 -0
- package/dist/{Messaging-QMYhp297.d.mts → Messaging-Bl4SBKpR.d.mts} +3 -3
- package/dist/{MessagingHost-gAxs5gme.d.mts → MessagingHost-nwBMdRoh.d.mts} +3 -3
- package/dist/{Output-CjocJzsl.d.mts → Output-B6RQ5jRU.d.mts} +2 -2
- package/dist/{PreparedInputAdmission-KLk5rGFI.d.mts → PreparedInputAdmission-D3-BgmA9.d.mts} +8 -4
- package/dist/{Records-Bidb7ByL.d.mts → Records-B4S02MX1.d.mts} +201 -14
- package/dist/{RunJournal-srpbEBEy.mjs → RunJournal-BdIlgAEj.mjs} +2 -2
- package/dist/{RunJournal-srpbEBEy.mjs.map → RunJournal-BdIlgAEj.mjs.map} +1 -1
- package/dist/{RunOptions-Bruk54SE.d.mts → RunOptions-qOcPv08p.d.mts} +10 -5
- package/dist/{Schedule-Cy9up8Uf.d.mts → Schedule-D2TVEu3W.d.mts} +7 -2
- package/dist/{Scheduling-CHCsSCGo.mjs → Scheduling-DPb2QyAK.mjs} +2 -2
- package/dist/{Scheduling-CHCsSCGo.mjs.map → Scheduling-DPb2QyAK.mjs.map} +1 -1
- package/dist/{Subagent-DP0CzO16.d.mts → Subagent-BxuDuCHt.d.mts} +172 -8
- package/dist/{Subagent-C2s8PFrd.mjs → Subagent-uXWHXiKb.mjs} +64 -29
- package/dist/Subagent-uXWHXiKb.mjs.map +1 -0
- package/dist/{SubagentHost-CYcxkpRc.d.mts → SubagentHost-DEPw4YME.d.mts} +6 -3
- package/dist/{Subscription-CHyoQelH.d.mts → Subscription-nX0rz4GQ.d.mts} +3 -3
- package/dist/{SubscriptionInput-DqrHW-Ja.d.mts → SubscriptionInput-CAG3_pyJ.d.mts} +3 -3
- package/dist/{Worker--j87JI__.d.mts → Worker-Bbj9uq5H.d.mts} +5 -2
- package/dist/{agent-registration-ByeHejH3.mjs → agent-registration-B5CI-Ygk.mjs} +7 -5
- package/dist/agent-registration-B5CI-Ygk.mjs.map +1 -0
- package/dist/capabilities/Commands.d.mts +1 -1
- package/dist/capabilities/Messaging.d.mts +2 -2
- package/dist/capabilities/RunHooks.d.mts +1 -1
- package/dist/capabilities/Subagent.d.mts +2 -2
- package/dist/capabilities/Subagent.mjs +1 -1
- package/dist/core/Agent.d.mts +1 -1
- package/dist/core/AgentError.d.mts +2 -2
- package/dist/core/AgentError.mjs +19 -2
- package/dist/core/AgentError.mjs.map +1 -1
- package/dist/core/FailureDiagnostic.d.mts +2 -0
- package/dist/core/FailureDiagnostic.mjs +2 -0
- package/dist/core/Worker.d.mts +1 -1
- package/dist/core/Worker.mjs +4 -1
- package/dist/core/Worker.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 +1 -1
- package/dist/durable/CommittedActivity.mjs +1 -1
- package/dist/durable/Digest.d.mts +1 -1
- package/dist/durable/Digest.mjs +7 -7
- package/dist/durable/Digest.mjs.map +1 -1
- package/dist/durable/DurableAgentRuntime.d.mts +1 -1
- package/dist/durable/DurableAgentRuntime.mjs +1 -1
- 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/GitHubWorkflowSource.mjs +1 -1
- package/dist/durable/MessageDelivery.d.mts +15 -3
- package/dist/durable/MessageDelivery.mjs +44 -24
- package/dist/durable/MessageDelivery.mjs.map +1 -1
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +4 -1
- package/dist/durable/MessageDeliveryStoreConformance.mjs +1 -1
- package/dist/durable/PersistentHistory.d.mts +1 -1
- package/dist/durable/PersistentHistory.mjs +2 -2
- package/dist/durable/PreparedInputAdmission.d.mts +1 -1
- package/dist/durable/PreparedInputAdmission.mjs +8 -4
- package/dist/durable/PreparedInputAdmission.mjs.map +1 -1
- package/dist/durable/Records.d.mts +1 -1
- package/dist/durable/Records.mjs +831 -2
- package/dist/durable/Records.mjs.map +1 -0
- package/dist/durable/Recovery.d.mts +1 -1
- package/dist/durable/Recovery.mjs +1 -1
- package/dist/durable/RunJournal.d.mts +1 -1
- package/dist/durable/RunJournal.mjs +1 -1
- package/dist/durable/Schedule.d.mts +1 -1
- package/dist/durable/Schedule.mjs +12 -3
- package/dist/durable/Schedule.mjs.map +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 +2 -2
- package/dist/durable/Scheduling.mjs +1 -1
- package/dist/durable/SqlMessageDeliveryStore.mjs +13 -11
- package/dist/durable/SqlMessageDeliveryStore.mjs.map +1 -1
- package/dist/durable/SqlStorageV2Upgrade.d.mts +2 -2
- package/dist/durable/SqlStorageV2Upgrade.mjs +1 -1
- package/dist/durable/SqlSubscriptionStore.d.mts +2 -2
- package/dist/durable/SqlSubscriptionStore.mjs +1 -1
- package/dist/durable/SqlThreadNativeReads.d.mts +1 -1
- package/dist/durable/SqlThreadNativeReads.mjs +2 -2
- package/dist/durable/SubmissionLedger.d.mts +1 -1
- package/dist/durable/SubmissionLedger.mjs +6 -3
- package/dist/durable/SubmissionLedger.mjs.map +1 -1
- package/dist/durable/SubmissionLedgerConformance.d.mts +1 -1
- package/dist/durable/SubmissionLedgerConformance.mjs +1 -1
- 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 +3 -3
- package/dist/durable/SubscriptionTransition.d.mts +1 -1
- package/dist/durable/SubscriptionTransition.mjs +1 -1
- package/dist/durable/Subscriptions.d.mts +5 -5
- package/dist/durable/Subscriptions.mjs +1 -1
- package/dist/durable/ThreadContextHistory.d.mts +1 -1
- package/dist/durable/ThreadContextHistory.mjs +1 -1
- package/dist/durable/ThreadContextHistoryProjection.d.mts +1 -1
- package/dist/durable/ThreadContextHistoryProjection.mjs +1 -1
- package/dist/durable/ThreadInvariants.d.mts +1 -1
- package/dist/durable/ThreadInvariants.mjs +2 -2
- 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/ThreadStore.d.mts +1 -1
- package/dist/durable/ThreadStore.mjs +2 -2
- package/dist/durable/ThreadStoreConformance.d.mts +1 -1
- package/dist/durable/ThreadStoreConformance.mjs +1 -1
- package/dist/durable/ToolReconciler.mjs +1 -1
- package/dist/durable/WorkerHost.d.mts +3 -3
- package/dist/engine/AgentRuntime.d.mts +1 -1
- package/dist/engine/AgentRuntime.mjs +1 -1
- package/dist/engine/MessagingHost.d.mts +1 -1
- package/dist/engine/Output.d.mts +1 -1
- package/dist/engine/RunOptions.d.mts +1 -1
- package/dist/engine/RunOptions.mjs +2 -0
- package/dist/engine/RunOptions.mjs.map +1 -1
- package/dist/engine/SubagentHost.d.mts +1 -1
- package/dist/engine/SubagentHost.mjs.map +1 -1
- package/dist/index.d.mts +18 -17
- package/dist/index.mjs +8 -7
- package/package.json +1 -1
- package/src/capabilities/internal/subagent-background.ts +66 -23
- package/src/capabilities/internal/subagent-contract.ts +4 -0
- package/src/core/AgentError.ts +20 -0
- package/src/core/FailureDiagnostic.ts +343 -0
- package/src/core/Worker.ts +4 -1
- package/src/durable/Digest.ts +22 -28
- package/src/durable/DurableAgentRuntime.ts +37 -13
- package/src/durable/MessageDelivery.ts +82 -24
- package/src/durable/PreparedInputAdmission.ts +17 -4
- package/src/durable/Records.ts +5 -15
- package/src/durable/Schedule.ts +11 -2
- package/src/durable/SqlMessageDeliveryStore.ts +21 -9
- package/src/durable/SubmissionLedger.ts +4 -1
- package/src/durable/internal/agent-registration.ts +46 -14
- package/src/durable/internal/worker-host.ts +32 -19
- package/src/engine/RunOptions.ts +11 -3
- package/src/engine/SubagentHost.ts +3 -0
- package/src/engine/internal/agent-runtime.ts +23 -16
- package/src/index.ts +1 -0
- package/dist/AgentRuntime-BWOnNc0d.mjs.map +0 -1
- package/dist/DurableAgentRuntime-C9eRZS9N.mjs.map +0 -1
- package/dist/Records-D8167fHn.mjs +0 -844
- package/dist/Records-D8167fHn.mjs.map +0 -1
- package/dist/Subagent-C2s8PFrd.mjs.map +0 -1
- package/dist/agent-registration-ByeHejH3.mjs.map +0 -1
|
@@ -6,17 +6,18 @@ import { c as Selection, l as Snapshot } from "./ToolExposure-r2eOWk4F.mjs";
|
|
|
6
6
|
import { l as RunUsageSummary, r as ModelCallUsage, s as RunTotals } from "./Usage-Dx0aknfk.mjs";
|
|
7
7
|
import { a as ExhaustedLimit } from "./RunEvent-DIrzkjLr.mjs";
|
|
8
8
|
import { t as ThreadHistory } from "./ThreadHistory-tS1KwxHR.mjs";
|
|
9
|
-
import { a as
|
|
9
|
+
import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
|
|
10
|
+
import { a as AgentInputError } from "./AgentError-Bn1ytXRD.mjs";
|
|
10
11
|
import { t as ToolParameterRejection } from "./ToolResult-BKdqWRff.mjs";
|
|
11
12
|
import { t as AgentPolicy } from "./AgentPolicy-BqDoSXO6.mjs";
|
|
12
|
-
import { T as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, n as Any, r as AnyDefinition, t as Agent_d_exports, v as ModelServices } from "./Agent-
|
|
13
|
+
import { T as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, n as Any, r as AnyDefinition, t as Agent_d_exports, v as ModelServices } from "./Agent-Bk-mLtov.mjs";
|
|
13
14
|
import { t as RunPolicyUsage } from "./RunPolicyUsage-ClZxyR46.mjs";
|
|
14
|
-
import { a as WorkerError, c as WorkerRef } from "./Worker
|
|
15
|
-
import { G as RunToolAuthorization, O as RunCostEstimator, h as RunApprovalHook, x as RunContextPreparation } from "./RunOptions-
|
|
16
|
-
import { _ as MessagingError, f as InputMessage, t as MessagingHost } from "./MessagingHost-
|
|
17
|
-
import "./Messaging-
|
|
18
|
-
import { c as WorkerReportPreparationFailure, i as SubagentHost, l as WorkerReporting } from "./SubagentHost-
|
|
19
|
-
import { p as RuntimeBinding, r as AgentCompletionProjectionRequirements, s as AgentRuntimeRequirements } from "./AgentRuntime-
|
|
15
|
+
import { a as WorkerError, c as WorkerRef } from "./Worker-Bbj9uq5H.mjs";
|
|
16
|
+
import { G as RunToolAuthorization, O as RunCostEstimator, h as RunApprovalHook, x as RunContextPreparation } from "./RunOptions-qOcPv08p.mjs";
|
|
17
|
+
import { _ as MessagingError, f as InputMessage, t as MessagingHost } from "./MessagingHost-nwBMdRoh.mjs";
|
|
18
|
+
import "./Messaging-Bl4SBKpR.mjs";
|
|
19
|
+
import { c as WorkerReportPreparationFailure, i as SubagentHost, l as WorkerReporting } from "./SubagentHost-DEPw4YME.mjs";
|
|
20
|
+
import { p as RuntimeBinding, r as AgentCompletionProjectionRequirements, s as AgentRuntimeRequirements } from "./AgentRuntime-BEXToYl1.mjs";
|
|
20
21
|
import { n as DurableRuntimeFailpoint, r as DurableRuntimeFailpointError } from "./DurableFailpoint-mx3-nsxU.mjs";
|
|
21
22
|
import { o as OperationDenied } from "./OperationAuthorizer-TzcQtpX5.mjs";
|
|
22
23
|
import { s as ToolReconciler } from "./ToolReconciler-BmVRAHKs.mjs";
|
|
@@ -93,6 +94,8 @@ declare const AdmissionGroup: Schema.NonEmptyString;
|
|
|
93
94
|
declare const AdmissionPolicyError_base: Schema.Class<AdmissionPolicyError, Schema.TaggedStruct<"AdmissionPolicyError", {
|
|
94
95
|
readonly reason: Schema.Literals<readonly ["refused", "unavailable", "occupied"]>;
|
|
95
96
|
readonly code: Schema.NonEmptyString;
|
|
97
|
+
readonly cause: Schema.optionalKey<Schema.decodeTo<Schema.Unknown, Schema.Codec<Diagnostic, Diagnostic, never, never>, never, never>>;
|
|
98
|
+
readonly stack: Schema.optionalKey<Schema.String>;
|
|
96
99
|
}>, import("effect/Cause").YieldableError>;
|
|
97
100
|
/** Fresh admission alone may be refused; unavailability never proves non-admission. */
|
|
98
101
|
declare class AdmissionPolicyError extends AdmissionPolicyError_base {}
|
|
@@ -515,15 +518,107 @@ declare const Settlement_base: Schema.Class<Settlement, Schema.Struct<{
|
|
|
515
518
|
readonly failure: Schema.optionalKey<Schema.declareConstructor<{
|
|
516
519
|
readonly errorTag: string;
|
|
517
520
|
readonly message: string;
|
|
521
|
+
readonly diagnostic?: Diagnostic | undefined;
|
|
522
|
+
readonly context?: {
|
|
523
|
+
readonly agentId?: string | undefined;
|
|
524
|
+
readonly threadId?: string | undefined;
|
|
525
|
+
readonly runId?: string | undefined;
|
|
526
|
+
readonly submissionId?: string | undefined;
|
|
527
|
+
readonly attemptId?: string | undefined;
|
|
528
|
+
readonly turnId?: string | undefined;
|
|
529
|
+
readonly toolCallId?: string | undefined;
|
|
530
|
+
readonly toolName?: string | undefined;
|
|
531
|
+
readonly callId?: string | undefined;
|
|
532
|
+
readonly check?: string | undefined;
|
|
533
|
+
readonly operation?: string | undefined;
|
|
534
|
+
} | undefined;
|
|
518
535
|
}, {
|
|
519
536
|
readonly errorTag: string;
|
|
520
537
|
readonly message: string;
|
|
538
|
+
readonly diagnostic?: Diagnostic | undefined;
|
|
539
|
+
readonly context?: {
|
|
540
|
+
readonly agentId?: string | undefined;
|
|
541
|
+
readonly threadId?: string | undefined;
|
|
542
|
+
readonly runId?: string | undefined;
|
|
543
|
+
readonly submissionId?: string | undefined;
|
|
544
|
+
readonly attemptId?: string | undefined;
|
|
545
|
+
readonly turnId?: string | undefined;
|
|
546
|
+
readonly toolCallId?: string | undefined;
|
|
547
|
+
readonly toolName?: string | undefined;
|
|
548
|
+
readonly callId?: string | undefined;
|
|
549
|
+
readonly check?: string | undefined;
|
|
550
|
+
readonly operation?: string | undefined;
|
|
551
|
+
} | undefined;
|
|
521
552
|
}, readonly [Schema.Struct<{
|
|
522
553
|
readonly errorTag: Schema.NonEmptyString;
|
|
523
554
|
readonly message: Schema.String;
|
|
555
|
+
readonly diagnostic: Schema.optionalKey<Schema.Codec<Diagnostic, Diagnostic, never, never>>;
|
|
556
|
+
readonly context: Schema.optionalKey<Schema.declareConstructor<{
|
|
557
|
+
readonly agentId?: string | undefined;
|
|
558
|
+
readonly threadId?: string | undefined;
|
|
559
|
+
readonly runId?: string | undefined;
|
|
560
|
+
readonly submissionId?: string | undefined;
|
|
561
|
+
readonly attemptId?: string | undefined;
|
|
562
|
+
readonly turnId?: string | undefined;
|
|
563
|
+
readonly toolCallId?: string | undefined;
|
|
564
|
+
readonly toolName?: string | undefined;
|
|
565
|
+
readonly callId?: string | undefined;
|
|
566
|
+
readonly check?: string | undefined;
|
|
567
|
+
readonly operation?: string | undefined;
|
|
568
|
+
}, {
|
|
569
|
+
readonly agentId?: string | undefined;
|
|
570
|
+
readonly threadId?: string | undefined;
|
|
571
|
+
readonly runId?: string | undefined;
|
|
572
|
+
readonly submissionId?: string | undefined;
|
|
573
|
+
readonly attemptId?: string | undefined;
|
|
574
|
+
readonly turnId?: string | undefined;
|
|
575
|
+
readonly toolCallId?: string | undefined;
|
|
576
|
+
readonly toolName?: string | undefined;
|
|
577
|
+
readonly callId?: string | undefined;
|
|
578
|
+
readonly check?: string | undefined;
|
|
579
|
+
readonly operation?: string | undefined;
|
|
580
|
+
}, readonly [Schema.Struct<{
|
|
581
|
+
readonly agentId: Schema.optionalKey<Schema.String>;
|
|
582
|
+
readonly threadId: Schema.optionalKey<Schema.String>;
|
|
583
|
+
readonly runId: Schema.optionalKey<Schema.String>;
|
|
584
|
+
readonly submissionId: Schema.optionalKey<Schema.String>;
|
|
585
|
+
readonly attemptId: Schema.optionalKey<Schema.String>;
|
|
586
|
+
readonly turnId: Schema.optionalKey<Schema.String>;
|
|
587
|
+
readonly toolCallId: Schema.optionalKey<Schema.String>;
|
|
588
|
+
readonly toolName: Schema.optionalKey<Schema.String>;
|
|
589
|
+
readonly callId: Schema.optionalKey<Schema.String>;
|
|
590
|
+
readonly check: Schema.optionalKey<Schema.String>;
|
|
591
|
+
readonly operation: Schema.optionalKey<Schema.String>;
|
|
592
|
+
}>], {
|
|
593
|
+
readonly agentId?: string | undefined;
|
|
594
|
+
readonly threadId?: string | undefined;
|
|
595
|
+
readonly runId?: string | undefined;
|
|
596
|
+
readonly submissionId?: string | undefined;
|
|
597
|
+
readonly attemptId?: string | undefined;
|
|
598
|
+
readonly turnId?: string | undefined;
|
|
599
|
+
readonly toolCallId?: string | undefined;
|
|
600
|
+
readonly toolName?: string | undefined;
|
|
601
|
+
readonly callId?: string | undefined;
|
|
602
|
+
readonly check?: string | undefined;
|
|
603
|
+
readonly operation?: string | undefined;
|
|
604
|
+
}>>;
|
|
524
605
|
}>], {
|
|
525
606
|
readonly errorTag: string;
|
|
526
607
|
readonly message: string;
|
|
608
|
+
readonly diagnostic?: Diagnostic | undefined;
|
|
609
|
+
readonly context?: {
|
|
610
|
+
readonly agentId?: string | undefined;
|
|
611
|
+
readonly threadId?: string | undefined;
|
|
612
|
+
readonly runId?: string | undefined;
|
|
613
|
+
readonly submissionId?: string | undefined;
|
|
614
|
+
readonly attemptId?: string | undefined;
|
|
615
|
+
readonly turnId?: string | undefined;
|
|
616
|
+
readonly toolCallId?: string | undefined;
|
|
617
|
+
readonly toolName?: string | undefined;
|
|
618
|
+
readonly callId?: string | undefined;
|
|
619
|
+
readonly check?: string | undefined;
|
|
620
|
+
readonly operation?: string | undefined;
|
|
621
|
+
} | undefined;
|
|
527
622
|
}>>;
|
|
528
623
|
readonly settledAt: Schema.DateTimeUtcFromString;
|
|
529
624
|
}>, {}>;
|
|
@@ -958,7 +1053,7 @@ declare class ChildReservationConflict extends ChildReservationConflict_base {}
|
|
|
958
1053
|
declare const LedgerError_base: Schema.Class<LedgerError, Schema.TaggedStruct<"LedgerError", {
|
|
959
1054
|
readonly operation: Schema.String;
|
|
960
1055
|
readonly message: Schema.String;
|
|
961
|
-
readonly cause: Schema.optionalKey<Schema.
|
|
1056
|
+
readonly cause: Schema.optionalKey<Schema.decodeTo<Schema.Unknown, Schema.Codec<Diagnostic, Diagnostic, never, never>, never, never>>;
|
|
962
1057
|
}>, import("effect/Cause").YieldableError>;
|
|
963
1058
|
/** Adapter-level ledger failure (storage unavailable, unknown submission, corrupt row, ...). */
|
|
964
1059
|
declare class LedgerError extends LedgerError_base {}
|
|
@@ -1569,7 +1664,7 @@ declare class DigestError extends DigestError_base {}
|
|
|
1569
1664
|
/** Digest a JSON value using a stable, locale-independent object-key ordering (UTF-16 code units, RFC 8785 style). */
|
|
1570
1665
|
declare const digestJson: (value: Schema.Json) => Effect.Effect<string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">, DigestError, Crypto.Crypto>;
|
|
1571
1666
|
/** Digest a canonical batch together with the prior tail to form an append-only hash chain. */
|
|
1572
|
-
declare const digestCanonicalBatch: (previousTailDigest:
|
|
1667
|
+
declare const digestCanonicalBatch: (previousTailDigest: Digest, batch: CanonicalBatch) => Effect.Effect<Digest, DigestError, Crypto.Crypto>;
|
|
1573
1668
|
/** Digest one schema-encoded Agent, Model, or Toolkit definition. */
|
|
1574
1669
|
declare const digestDefinition: (definition: Schema.Json) => Effect.Effect<string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">, DigestError, Crypto.Crypto>;
|
|
1575
1670
|
/** Digest all replay-relevant definitions without hiding which authority changed. */
|
|
@@ -2957,22 +3052,114 @@ type CanonicalSequence = typeof CanonicalSequence.Type;
|
|
|
2957
3052
|
declare const ProducerEpoch: Schema.brand<Schema.Natural, "@effect-agent/thread/ProducerEpoch">;
|
|
2958
3053
|
type ProducerEpoch = typeof ProducerEpoch.Type;
|
|
2959
3054
|
/**
|
|
2960
|
-
*
|
|
2961
|
-
*
|
|
2962
|
-
*
|
|
3055
|
+
* Private failed-Settlement evidence. The summary remains the safe public projection; diagnostic
|
|
3056
|
+
* and context preserve structured causal evidence for authorized operators, never model context.
|
|
3057
|
+
* Optional fields allow reading supported Settlements written before causal capture was available.
|
|
2963
3058
|
*/
|
|
2964
3059
|
declare const SettlementFailureDiagnostic: Schema.declareConstructor<{
|
|
2965
3060
|
readonly errorTag: string;
|
|
2966
3061
|
readonly message: string;
|
|
3062
|
+
readonly diagnostic?: Diagnostic | undefined;
|
|
3063
|
+
readonly context?: {
|
|
3064
|
+
readonly agentId?: string | undefined;
|
|
3065
|
+
readonly threadId?: string | undefined;
|
|
3066
|
+
readonly runId?: string | undefined;
|
|
3067
|
+
readonly submissionId?: string | undefined;
|
|
3068
|
+
readonly attemptId?: string | undefined;
|
|
3069
|
+
readonly turnId?: string | undefined;
|
|
3070
|
+
readonly toolCallId?: string | undefined;
|
|
3071
|
+
readonly toolName?: string | undefined;
|
|
3072
|
+
readonly callId?: string | undefined;
|
|
3073
|
+
readonly check?: string | undefined;
|
|
3074
|
+
readonly operation?: string | undefined;
|
|
3075
|
+
} | undefined;
|
|
2967
3076
|
}, {
|
|
2968
3077
|
readonly errorTag: string;
|
|
2969
3078
|
readonly message: string;
|
|
3079
|
+
readonly diagnostic?: Diagnostic | undefined;
|
|
3080
|
+
readonly context?: {
|
|
3081
|
+
readonly agentId?: string | undefined;
|
|
3082
|
+
readonly threadId?: string | undefined;
|
|
3083
|
+
readonly runId?: string | undefined;
|
|
3084
|
+
readonly submissionId?: string | undefined;
|
|
3085
|
+
readonly attemptId?: string | undefined;
|
|
3086
|
+
readonly turnId?: string | undefined;
|
|
3087
|
+
readonly toolCallId?: string | undefined;
|
|
3088
|
+
readonly toolName?: string | undefined;
|
|
3089
|
+
readonly callId?: string | undefined;
|
|
3090
|
+
readonly check?: string | undefined;
|
|
3091
|
+
readonly operation?: string | undefined;
|
|
3092
|
+
} | undefined;
|
|
2970
3093
|
}, readonly [Schema.Struct<{
|
|
2971
3094
|
readonly errorTag: Schema.NonEmptyString;
|
|
2972
3095
|
readonly message: Schema.String;
|
|
3096
|
+
readonly diagnostic: Schema.optionalKey<Schema.Codec<Diagnostic, Diagnostic, never, never>>;
|
|
3097
|
+
readonly context: Schema.optionalKey<Schema.declareConstructor<{
|
|
3098
|
+
readonly agentId?: string | undefined;
|
|
3099
|
+
readonly threadId?: string | undefined;
|
|
3100
|
+
readonly runId?: string | undefined;
|
|
3101
|
+
readonly submissionId?: string | undefined;
|
|
3102
|
+
readonly attemptId?: string | undefined;
|
|
3103
|
+
readonly turnId?: string | undefined;
|
|
3104
|
+
readonly toolCallId?: string | undefined;
|
|
3105
|
+
readonly toolName?: string | undefined;
|
|
3106
|
+
readonly callId?: string | undefined;
|
|
3107
|
+
readonly check?: string | undefined;
|
|
3108
|
+
readonly operation?: string | undefined;
|
|
3109
|
+
}, {
|
|
3110
|
+
readonly agentId?: string | undefined;
|
|
3111
|
+
readonly threadId?: string | undefined;
|
|
3112
|
+
readonly runId?: string | undefined;
|
|
3113
|
+
readonly submissionId?: string | undefined;
|
|
3114
|
+
readonly attemptId?: string | undefined;
|
|
3115
|
+
readonly turnId?: string | undefined;
|
|
3116
|
+
readonly toolCallId?: string | undefined;
|
|
3117
|
+
readonly toolName?: string | undefined;
|
|
3118
|
+
readonly callId?: string | undefined;
|
|
3119
|
+
readonly check?: string | undefined;
|
|
3120
|
+
readonly operation?: string | undefined;
|
|
3121
|
+
}, readonly [Schema.Struct<{
|
|
3122
|
+
readonly agentId: Schema.optionalKey<Schema.String>;
|
|
3123
|
+
readonly threadId: Schema.optionalKey<Schema.String>;
|
|
3124
|
+
readonly runId: Schema.optionalKey<Schema.String>;
|
|
3125
|
+
readonly submissionId: Schema.optionalKey<Schema.String>;
|
|
3126
|
+
readonly attemptId: Schema.optionalKey<Schema.String>;
|
|
3127
|
+
readonly turnId: Schema.optionalKey<Schema.String>;
|
|
3128
|
+
readonly toolCallId: Schema.optionalKey<Schema.String>;
|
|
3129
|
+
readonly toolName: Schema.optionalKey<Schema.String>;
|
|
3130
|
+
readonly callId: Schema.optionalKey<Schema.String>;
|
|
3131
|
+
readonly check: Schema.optionalKey<Schema.String>;
|
|
3132
|
+
readonly operation: Schema.optionalKey<Schema.String>;
|
|
3133
|
+
}>], {
|
|
3134
|
+
readonly agentId?: string | undefined;
|
|
3135
|
+
readonly threadId?: string | undefined;
|
|
3136
|
+
readonly runId?: string | undefined;
|
|
3137
|
+
readonly submissionId?: string | undefined;
|
|
3138
|
+
readonly attemptId?: string | undefined;
|
|
3139
|
+
readonly turnId?: string | undefined;
|
|
3140
|
+
readonly toolCallId?: string | undefined;
|
|
3141
|
+
readonly toolName?: string | undefined;
|
|
3142
|
+
readonly callId?: string | undefined;
|
|
3143
|
+
readonly check?: string | undefined;
|
|
3144
|
+
readonly operation?: string | undefined;
|
|
3145
|
+
}>>;
|
|
2973
3146
|
}>], {
|
|
2974
3147
|
readonly errorTag: string;
|
|
2975
3148
|
readonly message: string;
|
|
3149
|
+
readonly diagnostic?: Diagnostic | undefined;
|
|
3150
|
+
readonly context?: {
|
|
3151
|
+
readonly agentId?: string | undefined;
|
|
3152
|
+
readonly threadId?: string | undefined;
|
|
3153
|
+
readonly runId?: string | undefined;
|
|
3154
|
+
readonly submissionId?: string | undefined;
|
|
3155
|
+
readonly attemptId?: string | undefined;
|
|
3156
|
+
readonly turnId?: string | undefined;
|
|
3157
|
+
readonly toolCallId?: string | undefined;
|
|
3158
|
+
readonly toolName?: string | undefined;
|
|
3159
|
+
readonly callId?: string | undefined;
|
|
3160
|
+
readonly check?: string | undefined;
|
|
3161
|
+
readonly operation?: string | undefined;
|
|
3162
|
+
} | undefined;
|
|
2976
3163
|
}>;
|
|
2977
3164
|
type SettlementFailureDiagnostic = typeof SettlementFailureDiagnostic.Type;
|
|
2978
3165
|
declare const MAX_PERSISTED_JSON_DEPTH = 64;
|
|
@@ -3800,4 +3987,4 @@ declare class CanonicalRecordEnvelope extends CanonicalRecordEnvelope_base {}
|
|
|
3800
3987
|
declare const CURRENT_CANONICAL_SCHEMA_VERSION: 1;
|
|
3801
3988
|
//#endregion
|
|
3802
3989
|
export { ToolCallPrepared as $, ReleaseOwnershipRequest as $a, ResumeSuspended as $i, runDurationRecordId as $n, predictRecoveryDisposition as $r, ThreadCheckpoints as $t, ProducerId as A, ChildSettledNotification as Aa, AwaitUnknownResolution as Ai, RunJournalError as An, WaitingChild as Ao, workerInputRecordId as Ar, DurableSubmitAgent as At, RunStartedRecord as B, LedgerError as Ba, OpenToolCallEvidence as Bi, compactionRecordId as Bn, IntegrityReport as Br, threadCreatedBatchId as Bt, ModelCompleted as C, BeginChildBudgetReleaseRequest as Ca, ApplyJoinAccounting as Ci, readOutstanding as Cn, SuspensionOutcome as Co, turnCanonicalBatch as Cr, DurableObligationFailure as Ct, PeerMessagePrepared as D, ChildReservationConflict as Da, AwaitChildSettlement as Di, SubmissionStatus as Dn, UnknownResolutionCommand as Do, turnResponseBatchId as Dr, DurableRetryFailure as Dt, ObservationOffset as E, ChildBudgetReservationSnapshot as Ea, AwaitChildAdmissionResolution as Ei, SettledSubmission as En, UnknownResolution as Eo, turnResponseBatch as Er, DurableResolveFailure as Et, ReplayContract as F, DEFAULT_OWNERSHIP_LEASE_DURATION as Fa, EnsureWaitingForChild as Fi, agentUpdateRecordId as Fn, submissionInputBatchId as Fo, ExplainedSubmission as Fr, DurableWorkerRequirements as Ft, SubagentRequested as G, OwnershipLost as Ga, Recovery_d_exports as Gi, modelResponseRecordId as Gn, ObligationThresholds as Gr, FenceRejected as Gt, SettlementOutcome as H, MarkJoinedRequest as Ha, PropagateChildAbort as Hi, markUnknownBatchId as Hn, ObligationEntry as Hr, AppendConflict as Ht, RunCompleted as I, InputAppliedMarker as Ia, FinalizeLedgerFromHistory as Ii, approvalDecisionBatchId as In, submissionInputRecordId as Io, ExplainedUnknownCall as Ir, RecoveryReport as It, SubmissionSettledRecord as J, OwnershipToken as Ja, RepairJoinMarker as Ji, projectRunJournalStream as Jn, RecoveryExplanation as Jr, MAX_THREAD_EXPORT_RECORDS as Jt, SubagentStarted as K, OwnershipRenewal as Ka, ReleaseOrphanChildReservation as Ki, peerMessageRecordId as Kn, RECOVERY_DECISION_MEANINGS as Kr, FencedAppendRequest as Kt, RunDurationExhausted as L, JoinSnapshot as La, MarkUnknown as Li, childIdempotencyKeyFor as Ln, submissionSettlementBatchId as Lo, IntegrityCheck as Lr, childReservationIdFor as Lt, RecordId as M, Claim as Ma, CompleteMaterialization as Mi, RunJournalUsage as Mn, settlementFailureFromRecord as Mo, workerReportRecordId as Mr, DurableSubmitOptions as Mt, Records_d_exports as N, ClaimJoiningRequest as Na, DeclaredPendingBatchEvidence as Ni, RunJournal_d_exports as Nn, submissionAbortBatchId as No, Admin_d_exports as Nr, DurableVerifyFailure as Nt, PersistedJson as O, ChildReservationId as Oa, AwaitHostSettlement as Oi, SubmissionStatus_d_exports as On, UnknownResolutionConflict as Oo, turnResultsBatch as Or, DurableRuntimeConfig as Ot, RepairAnnotated as P, ClaimRequest as Pa, DelegationAdmissionEvidence as Pi, TurnCommitInput as Pn, submissionAbortRecordId as Po, ExplainedEvidence as Pr, DurableWorkerFailure as Pt, ToolApprovalRequested as Q, ReleaseChildBudgetRequest as Qa, ResumePendingToolBatch as Qi, runDurationBatchId as Qn, obligationSeverityOf as Qr, ThreadCheckpoint as Qt, RunFailed as R, JoiningClaim as Ra, NoAction as Ri, childThreadIdFor as Rn, submissionSettlementId as Ro, IntegrityCheckName as Rr, recoveryRepairBatchId as Rt, MAX_PERSISTED_JSON_NODES as S, AttachChildToReservationRequest as Sa, ApplyInput as Si, getRunInput as Sn, SuspendRequest as So, turnBatchId as Sr, DurableExplainFailure as St, ModelResponseRecorded as T, ChildBudgetReservationRequest as Ta, AwaitApprovalDecision as Ti, PendingSubmission as Tn, SuspensionSnapshot as To, turnPreparedBatchId as Tr, DurableProgressFailure as Tt, SubagentJoined as U, MarkReadyRequest as Ua, RecoveryDecision as Ui, modelResponseInterruptedBatchId as Un, ObligationReport as Ur, AppendResult as Ut, SettlementFailureDiagnostic as V, MarkInputAppliedRequest as Va, PendingApprovalEvidence as Vi, firstWorkerInputRecordId as Vn, ObligationBlockedOn as Vr, threadCreatedRecordId as Vt, SubagentLineageRecorded as W, MarkUnknownRequest as Wa, RecoveryEvidence as Wi, modelResponseInterruptedRecordId as Wn, ObligationSeverity as Wr, CheckpointRejected as Wt, ThreadCreated as X, RecoverySnapshot as Xa, RepairSubagentStartLink as Xi, runCompletedRecordId as Xn, RetryRefusalReason as Xr, SaveRecoveryCheckpointRequest as Xt, SubtreeBudgetReserved as Y, ParentLinkage as Ya, RepairReadiness as Yi, promptFromCanonicalRecords as Yn, RetryCommand as Yr, SaveCheckpointRequest as Yt, ToolApprovalDecided as Z, RecoverySnapshotRequest as Za, ResumeFromTurnBoundary as Zi, runCompletionDigest as Zn, RetryRefused as Zr, SelectedThreadRead as Zt, Digest as _, AdmissionResult as _a, digestCanonicalBatch as _i, ThreadStore_d_exports as _n, SubmissionLookup as _o, toolCallSettledRecordId as _r, DurableAgentRuntime as _t, BatchId as a, AbortCommand as aa, BindingUnavailable as ai, ThreadOutstanding as an, ResolutionNeverHappened as ao, subagentLineageBatchId as ar, ToolStepSettled as at, MAX_PERSISTED_JSON_COLLECTION_LENGTH as b, ApprovalDecisionIntent as ba, digestJson as bi, ThreadWorkerStateRequest as bn, SubmissionSnapshot as bo, toolStepSettledRecordId as br, DurableApprovalResolver as bt, CanonicalRecord as c, AdmissionAdmitted as ca, ExecutableAgentBinding as ci, ThreadRead as cn, Settlement as co, subagentRequestedRecordId as cr, WorkerAdmission as ct, CanonicalSequence as d, AdmissionGroup as da, compileBindingContracts as di, ThreadRecoveryCheckpoints as dn, SettlementReservation as do, toolApprovalDecisionRecordId as dr, WorkerOrigin as dt, ResumeWaitingParent as ea, recoveryDecisionMeaning as ei, ThreadExport as en, RenewOwnershipRequest as eo, runIdForSubmission as er, ToolCallResolution as et, CompactionCreated as f, AdmissionIndeterminate as fa, compileRegistrations as fi, ThreadRunInputRequest as fn, SettlementReservationSnapshot as fo, toolApprovalRequestRecordId as fr, WorkerOriginRecorded as ft, DeploymentId as g, AdmissionResolution as ga, EMPTY_TAIL_DIGEST as gi, ThreadStoreFailure as gn, SubmissionLedger_d_exports as go, toolCallResultBatchId as gr, DurableAbortFailure as gt, DefinitionDigests as h, AdmissionRequest as ha, Digest_d_exports as hi, ThreadStoreError as hn, SubmissionLedgerFailure as ho, toolCallResolvedRecordId as hr, WorkerReportingIntent as ht, ApprovalDecision as i, classifyRecovery as ia, AgentRegistration as ii, ThreadObservation as in, ResolutionCompletedWithResult as io, subagentJoinedRecordId as ir, ToolOperation as it, RecordEnvelope as j, ChildSettledOutcome as ja, CompleteChildAdmission as ji, RunJournalProjection as jn, WaitingForChildSuspension as jo, workerOriginRecordId as jr, DurableSubmitFailure as jt, ProducerEpoch as k, ChildReservationStatus as ka, AwaitParentEstablishment as ki, JournalBoundary as kn, UnknownResolutionIntent as ko, turnResultsBatchId as kr, DurableRuntimeConfigOptions as kt, CanonicalRecordEnvelope as l, AdmissionConflict as la, ReplayVersions as li, ThreadReadRequest as ln, SettlementConflict as lo, subagentStartedBatchId as lr, WorkerInputCompleted as lt, DefinitionDigestInput as m, AdmissionPolicyError as ma, DigestError as mi, ThreadStore as mn, SubmissionLedger as mo, toolCallResolutionBatchId as mr, WorkerReportRefused as mt, AbortedSubmissionSettled as n, SettleAborted as na, AgentRegistration_d_exports as ni, ThreadMaterialization as nn, ReservedSettlement as no, runStartedRecordId as nr, ToolCallSettled as nt, CURRENT_CANONICAL_SCHEMA_VERSION as o, AbortIntent as oa, DurableBindingFailure as oi, ThreadOutstandingRequest as on, ResolutionSafeToRetry as oo, subagentLineageRecordId as or, ToolUnavailable as ot, CompletedSubmissionSettled as p, AdmissionNotAdmitted as pa, definitionDigestsEqual as pi, ThreadSelection as pn, SubmissionAdmissionFence as po, toolCallPreparedRecordId as pr, WorkerReportPrepared as pt, SubmissionSettled as q, OwnershipSnapshot as qa, RepairInputMarker as qi, projectRunJournal as qn, RecoveryDisposition as qr, LoadCheckpointRequest as qt, AgentUpdateEmitted as r, SettleJoinedWithHost as ra, AgentAttemptContext as ri, ThreadNotMaterialized as rn, ResolutionAbortSubmission as ro, subagentJoinBatchId as rr, ToolCallUnknown as rt, CanonicalBatch as s, AbortIntentRequest as sa, DurableWorkerBinding as si, ThreadPeerCountRequest as sn, RevertJoiningRequest as so, subagentRequestedBatchId as sr, UserInputRecorded as st, AbortRequested as t, RevertJoining as ta, renderRecoveryExplanation as ti, ThreadExportRequest as tn, ReservedChildBudget as to, runStartedBatchId as tr, ToolCallResolved as tt, CanonicalRecordPayload as u, AdmissionFence as ua, ResolvedBinding as ui, ThreadRecordRequest as un, SettlementFinalization as uo, subagentStartedRecordId as ur, WorkerInputRequested as ut, FailedSubmissionSettled as v, ApprovalConflict as va, digestDefinition as vi, ThreadTail as vn, SubmissionLookupById as vo, toolCallUnknownRecordId as vr, DurableAgentRuntime_d_exports as vt, ModelResponseInterrupted as w, ChildAttachmentSnapshot as wa, ApplyUnknownResolutions as wi, readWorkerState as wn, SuspensionReason as wo, turnIdForRun as wr, DurableObserveOptions as wt, MAX_PERSISTED_JSON_DEPTH as x, ApprovalPendingSuspension as xa, AppendReservedSettlement as xi, getRecord as xn, SubmissionState as xo, turnApprovalsBatchId as xr, DurableAwaitFailure as xt, MAX_PERSISTED_JSON_BYTES as y, ApprovalDecisionCommand as ya, digestDefinitions as yi, ThreadTailRequest as yn, SubmissionLookupByKey as yo, toolStepSettledBatchId as yr, DurableApprovalFailure as yt, RunPolicyUsageReserved as z, LedgerCapabilities as za, OpenDelegationCallEvidence as zi, compactionBatchId as zn, submissionSettlementRecordId as zo, IntegrityCheckStatus as zr, recoveryRepairRecordId as zt };
|
|
3803
|
-
//# sourceMappingURL=Records-
|
|
3990
|
+
//# sourceMappingURL=Records-B4S02MX1.d.mts.map
|
|
@@ -4,7 +4,7 @@ import { IdempotencyKey } from "./core/Receipt.mjs";
|
|
|
4
4
|
import { ModelCallUsage, summarizeModelUsage } from "./core/Usage.mjs";
|
|
5
5
|
import { f as contextWindowId, n as COMPACTION_SUMMARY_PREFIX, p as contextWindowMessage, t as CLEARED_TOOL_RESULT } from "./compaction-C2OTceKw.mjs";
|
|
6
6
|
import { RunPolicyUsage } from "./core/RunPolicyUsage.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { BatchId, CanonicalBatch, CompactionCreated, ModelResponseRecorded, PersistedJson, RecordEnvelope, RecordId, RunCompleted, ToolCallSettled } from "./durable/Records.mjs";
|
|
8
8
|
import { digestJson } from "./durable/Digest.mjs";
|
|
9
9
|
import { Prompt } from "effect/unstable/ai";
|
|
10
10
|
import { Effect, Schema, Stream } from "effect";
|
|
@@ -906,4 +906,4 @@ const turnResultsBatch = Effect.fn("RunJournal.turnResultsBatch")(function* (inp
|
|
|
906
906
|
//#endregion
|
|
907
907
|
export { workerOriginRecordId as $, subagentRequestedRecordId as A, toolCallUnknownRecordId as B, runStartedBatchId as C, subagentLineageBatchId as D, subagentJoinedRecordId as E, toolCallPreparedRecordId as F, turnCanonicalBatch as G, toolStepSettledRecordId as H, toolCallResolutionBatchId as I, turnResponseBatch as J, turnIdForRun as K, toolCallResolvedRecordId as L, subagentStartedRecordId as M, toolApprovalDecisionRecordId as N, subagentLineageRecordId as O, toolApprovalRequestRecordId as P, workerInputRecordId as Q, toolCallResultBatchId as R, runIdForSubmission as S, subagentJoinBatchId as T, turnApprovalsBatchId as U, toolStepSettledBatchId as V, turnBatchId as W, turnResultsBatch as X, turnResponseBatchId as Y, turnResultsBatchId as Z, promptFromCanonicalRecords as _, childIdempotencyKeyFor as a, runDurationBatchId as b, compactionRecordId as c, modelResponseInterruptedBatchId as d, workerReportRecordId as et, modelResponseInterruptedRecordId as f, projectRunJournalStream as g, projectRunJournal as h, approvalDecisionBatchId as i, subagentStartedBatchId as j, subagentRequestedBatchId as k, firstWorkerInputRecordId as l, peerMessageRecordId as m, RunJournal_exports as n, childThreadIdFor as o, modelResponseRecordId as p, turnPreparedBatchId as q, agentUpdateRecordId as r, compactionBatchId as s, RunJournalError as t, makeJournalMetadata as tt, markUnknownBatchId as u, runCompletedRecordId as v, runStartedRecordId as w, runDurationRecordId as x, runCompletionDigest as y, toolCallSettledRecordId as z };
|
|
908
908
|
|
|
909
|
-
//# sourceMappingURL=RunJournal-
|
|
909
|
+
//# sourceMappingURL=RunJournal-BdIlgAEj.mjs.map
|